Borderou de evaluare (job #761010)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Leduri1 (clasa a 7-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 8 feb. 2024 19:47:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:68:5: error: unknown type name 'd'
68 | d
| ^
main.c:70:5: error: conflicting types for 'fout'; have 'int'
70 | fout = fopen( "leduri1.out", "w" );
| ^~~~
main.c:18:17: note: previous declaration of 'fout' with type 'FILE *'
18 | FILE *fin, *fout;
| ^~~~
main.c:70:5: warning: unused variable 'fout' [-Wunused-variable]
70 | fout = fopen( "leduri1.out", "w" );
| ^~~~
main.c:19:49: warning: variable 'timp_curent' set but not used [-Wunused-but-set-variable]
19 | int timp, lin, col, num, ceas_trans_sutsec, timp_curent;
| ^~~~~~~~~~~
main.c:39:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | fscanf( fin, "%d", &timp );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~