Borderou de evaluare (job #815451)

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

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:7:39: error: redeclaration of 't2' with no linkage 7 | int i,t2,t1,r1,r2,g2,g1,v1,v2,cer,t2,s1,s2; | ^~ main.c:7:11: note: previous declaration of 't2' with type 'int' 7 | int i,t2,t1,r1,r2,g2,g1,v1,v2,cer,t2,s1,s2; | ^~ main.c:7:9: warning: unused variable 'i' [-Wunused-variable] 7 | int i,t2,t1,r1,r2,g2,g1,v1,v2,cer,t2,s1,s2; | ^ main.c:6:17: warning: variable 'fout' set but not used [-Wunused-but-set-variable] 6 | FILE *fin, *fout; | ^~~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d%d%d%d%d%d%d%d%d" ,&cer,&r1,&g1,&v1,&r2,&g2,&v2,&t1,&t2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~