Borderou de evaluare (job #782963)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Portofel (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 iul. 2024 13:13:22 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:92:9: error: expected declaration or statement at end of input
92 | }
| ^
main.c:92:9: error: expected declaration or statement at end of input
main.c:9:11: warning: unused variable 'fout' [-Wunused-variable]
9 | FILE *fout = fopen("portofel.out", "w");
| ^~~~
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:15:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin, "%d", &portofel[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:18:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | fscanf(fin, "%d", &m);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:21:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | fscanf(fin, "%d", &premii[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~