Borderou de evaluare (job #698753)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Chibrituri (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 feb. 2023 13:02:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:73:38: error: expected ';' before 'printf'
73 | fin = fopen("chibrituri.in", "r")
| ^
| ;
74 | printf("%d ", r);
| ~~~~~~
main.c:9:131: warning: unused variable 'f' [-Wunused-variable]
9 | int nl,nw,nv,i1,i2,i3,i4,tl1,tl2,tl3,tl4,tw1,tw2,tw3,tw4,max=0000,min=1259,c1,c2,c3,c4,timp,r=0,maxh,maxm,minh,minm,c12,a,s,d,f;
| ^
main.c:9:129: warning: unused variable 'd' [-Wunused-variable]
9 | int nl,nw,nv,i1,i2,i3,i4,tl1,tl2,tl3,tl4,tw1,tw2,tw3,tw4,max=0000,min=1259,c1,c2,c3,c4,timp,r=0,maxh,maxm,minh,minm,c12,a,s,d,f;
| ^
main.c:9:127: warning: unused variable 's' [-Wunused-variable]
9 | int nl,nw,nv,i1,i2,i3,i4,tl1,tl2,tl3,tl4,tw1,tw2,tw3,tw4,max=0000,min=1259,c1,c2,c3,c4,timp,r=0,maxh,maxm,minh,minm,c12,a,s,d,f;
| ^
main.c:9:125: warning: unused variable 'a' [-Wunused-variable]
9 | int nl,nw,nv,i1,i2,i3,i4,tl1,tl2,tl3,tl4,tw1,tw2,tw3,tw4,max=0000,min=1259,c1,c2,c3,c4,timp,r=0,maxh,maxm,minh,minm,c12,a,s,d,f;
| ^
main.c:9:121: warning: unused variable 'c12' [-Wunused-variable]
9 | int nl,nw,nv,i1,i2,i3,i4,tl1,tl2,tl3,tl4,tw1,tw2,tw3,tw4,max=0000,min=1259,c1,c2,c3,c4,timp,r=0,maxh,maxm,minh,minm,c12,a,s,d,f;
| ^~~
main.c:9:15: warning: unused variable 'nv' [-Wunused-variable]
9 | int nl,nw,nv,i1,i2,i3,i4,tl1,tl2,tl3,tl4,tw1,tw2,tw3,tw4,max=0000,min=1259,c1,c2,c3,c4,timp,r=0,maxh,maxm,minh,minm,c12,a,s,d,f;
| ^~
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin, "%d%d", &nl,&nw);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~