Borderou de evaluare (job #672545)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Date (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 29 oct. 2022 10:56:17 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:19:72: error: expected ')' before 's1'
19 | if(((l1 > 2) && ((a1 % 400 == 0) || (a1 % 4 == 0 && a1 % 100 > 0)))
| ~ ^
| )
20 | s1++;
| ~~
main.c:27:1: error: expected expression before '}' token
27 | }
| ^
main.c:9:18: warning: variable 's2' set but not used [-Wunused-but-set-variable]
9 | long long s1,s2;
| ^~
main.c:9:15: warning: variable 's1' set but not used [-Wunused-but-set-variable]
9 | long long s1,s2;
| ^~
main.c:7:16: warning: variable 'fout' set but not used [-Wunused-but-set-variable]
7 | FILE *fin,*fout;
| ^~~~
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin,"%d%d%d%d%d%d",&z1,&l1,&a1,&z2,&l2,&a2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~