Borderou de evaluare (job #2886223)

Utilizator Remus.RughinisRemus Rughinis Remus.Rughinis Data 7 aprilie 2022 13:14:53
Problema Ciocolata Status done
Runda baraj_liceu_2014-2019 Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'quicksort': main.c:22:12: error: 'a' undeclared (first use in this function) 22 | swap(v[a], v[b]); | ^ main.c:22:12: note: each undeclared identifier is reported only once for each function it appears in main.c:22:17: warning: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion] 22 | swap(v[a], v[b]); | ~^~~ | | | int main.c:7:24: note: expected 'int *' but argument is of type 'int' 7 | void swap(int* a, int* b){ | ~~~~~^ main.c:14:51: warning: unused variable 'aux' [-Wunused-variable] 14 | int b = begin, e = end, pivot = v[(e + b) / 2], aux; | ^~~ main.c: In function 'main': main.c:39:11: error: redeclaration of 't' with no linkage 39 | int t,i,t,a,b; | ^ main.c:39:7: note: previous declaration of 't' was here 39 | int t,i,t,a,b; | ^ main.c:44:9: error: 'j' undeclared (first use in this function) 44 | for(j = 2; j <= MAXL; j ++) | ^ main.c:40:15: warning: unused variable 'fout' [-Wunused-variable] 40 | FILE *fin, *fout; | ^~~~ main.c:40:9: warning: unused variable 'fin' [-Wunused-variable] 40 | FILE *fin, *fout; | ^~~ main.c: In function 'quicksort': main.c:36:1: warning: control reaches end of non-void function [-Wreturn-type] 36 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?