Borderou de evaluare (job #807274)

Utilizator avatar andrei_sevescu sevescu andrei andrei_sevescu IP ascuns
Problemă Adunare Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 31 ian. 2025 10:45:55 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:10:10: error: conflicting types for 'c'; have 'char' 10 | char c; | ^ main.c:9:19: note: previous definition of 'c' with type 'int' 9 | int k,i,n,l=0,c=0,p; | ^ main.c:25:7: error: expected expression before '}' token 25 | } | ^ main.c:9:23: warning: unused variable 'p' [-Wunused-variable] 9 | int k,i,n,l=0,c=0,p; | ^ main.c:9:15: warning: unused variable 'l' [-Wunused-variable] 9 | int k,i,n,l=0,c=0,p; | ^ main.c:8:17: warning: variable 'fout' set but not used [-Wunused-but-set-variable] 8 | FILE *fin, *fout; | ^~~~ main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin, "%d%d%d%d%d" ,&n,&z[0],&z[1],&z[2],&k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~