Borderou de evaluare (job #616212)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cabina (clasa a 5-a) | Compilator | c-32 |
Rundă | Tema 14 clasa a 5-a | Status | evaluat |
Dată | 14 nov. 2021 17:26:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:10:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
10 | fscanf( fin,"%d", n );
| ~^ ~
| | |
| | int
| int *
main.c:11:5: error: 'i' undeclared (first use in this function)
11 | i = 0;
| ^
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:24: warning: unused variable 'l' [-Wunused-variable]
9 | int n, suma, a, b, l;
| ^
main.c:9:18: warning: unused variable 'a' [-Wunused-variable]
9 | int n, suma, a, b, l;
| ^
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf( fin,"%d", n );
| ^~~~~~~~~~~~~~~~~~~~~