Borderou de evaluare (job #798990)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Faleza (clasa a 6-a) | Compilator | c-32 |
Rundă | Tema 19 Clasa a 6-a | Status | evaluat |
Dată | 5 dec. 2024 17:19:44 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:6:44: error: 't' undeclared (first use in this function)
6 | FILE *fout = fopen("faleza.out", "w"); t
| ^
main.c:6:44: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:45: error: expected ';' before 'int'
6 | FILE *fout = fopen("faleza.out", "w"); t
| ^
| ;
7 | int n, cnt = 0;
| ~~~
main.c:8:24: error: 'n' undeclared (first use in this function)
8 | fscanf(fin, "%d", &n);
| ^
main.c:21:13: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
21 | cnt++;
| ^~~
| int
main.c:11:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin, "%d", &v[i][j]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~