Borderou de evaluare (job #683033)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Chibrituri (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 dec. 2022 11:09:04 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:22:33: warning: statement with no effect [-Wunused-value]
22 | for (h1 == 0; h1 <= 9; h1 ++){
| ~~~^~~~
main.c:29:74: warning: format '%d' expects a matching 'int' argument [-Wformat=]
29 | printf("%d %d %d %d")
| ~^
| |
| int
main.c:29:77: warning: format '%d' expects a matching 'int' argument [-Wformat=]
29 | printf("%d %d %d %d")
| ~^
| |
| int
main.c:29:80: warning: format '%d' expects a matching 'int' argument [-Wformat=]
29 | printf("%d %d %d %d")
| ~^
| |
| int
main.c:29:83: warning: format '%d' expects a matching 'int' argument [-Wformat=]
29 | printf("%d %d %d %d")
| ~^
| |
| int
main.c:29:86: error: expected ';' before 's'
29 | printf("%d %d %d %d")
| ^
| ;
30 | s++;
| ~
main.c:14:38: warning: variable 'min' set but not used [-Wunused-but-set-variable]
14 | int i,s1,s2,ok,oriz,vert,max,min,s,h1,h0,m1,m0;
| ^~~
main.c:14:34: warning: variable 'max' set but not used [-Wunused-but-set-variable]
14 | int i,s1,s2,ok,oriz,vert,max,min,s,h1,h0,m1,m0;
| ^~~
main.c:14:21: warning: unused variable 'ok' [-Wunused-variable]
14 | int i,s1,s2,ok,oriz,vert,max,min,s,h1,h0,m1,m0;
| ^~
main.c:14:13: warning: unused variable 'i' [-Wunused-variable]
14 | int i,s1,s2,ok,oriz,vert,max,min,s,h1,h0,m1,m0;
| ^
main.c:20:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf(fin,"%d%d",&vert,&oriz);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~