Borderou de evaluare (job #766696)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cuart (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 mar. 2024 20:49:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:8:5: error: conflicting types for 'fin'; have 'int'
8 | fin = fopen("cuart.in", "r");
| ^~~
main.c:6:11: note: previous declaration of 'fin' with type 'FILE *'
6 | FILE *fin, *fout;
| ^~~
main.c:9:24: error: expected expression before ')' token
9 | fscanf(fin, "%d", &);
| ^
main.c:11:12: error: expected expression before ')' token
11 | while () {
| ^
main.c:19:25: error: 'max' undeclared (first use in this function)
19 | fprintf(fout, "%d", max);
| ^~~
main.c:19:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: warning: unused variable 'fin' [-Wunused-variable]
8 | fin = fopen("cuart.in", "r");
| ^~~