Borderou de evaluare (job #605400)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Magic1 (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 sept. 2021 15:58:34 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:34:28: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
34 | fscanf(fout, "%d", i)
| ~^ ~
| | |
| | int
| int *
main.c:34:34: error: expected ';' before 'ok'
34 | fscanf(fout, "%d", i)
| ^
| ;
35 | ok=1;
| ~~
main.c:40:32: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
40 | fscanf(fout, "%d", t)
| ~^ ~
| | |
| | int
| int *
main.c:40:38: error: expected ';' before 'v'
40 | fscanf(fout, "%d", t)
| ^
| ;
41 | v[0]=21;
| ~
main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:28:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | fscanf(fout, "\n");
| ^~~~~~~~~~~~~~~~~~
main.c:34:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | fscanf(fout, "%d", i)
| ^~~~~~~~~~~~~~~~~~~~~
main.c:40:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | fscanf(fout, "%d", t)
| ^~~~~~~~~~~~~~~~~~~~~