Borderou de evaluare (job #734550)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Swap (baraj gimnaziu) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 oct. 2023 11:41:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'costExpresie':
main.c:9:19: error: 'fin' undeclared (first use in this function)
9 | s[i] = fgetc( fin );
| ^~~
main.c:9:19: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'main':
main.c:21:8: warning: unused variable 'ch' [-Wunused-variable]
21 | char ch;
| ^~
main.c:20:22: warning: variable 'sparinc' set but not used [-Wunused-but-set-variable]
20 | int n, i, spardes, sparinc;
| ^~~~~~~
main.c:20:13: warning: variable 'spardes' set but not used [-Wunused-but-set-variable]
20 | int n, i, spardes, sparinc;
| ^~~~~~~
main.c:20:10: warning: unused variable 'i' [-Wunused-variable]
20 | int n, i, spardes, sparinc;
| ^
main.c:23:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | fscanf( fin, "%d ", &n );
| ^~~~~~~~~~~~~~~~~~~~~~~~