Borderou de evaluare (job #811165)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cladiri (clasa a 6-a) | Compilator | c-32 |
Rundă | Tema 30 Clasa a 6-a | Status | evaluat |
Dată | 23 feb. 2025 15:34:54 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:7:47: error: redefinition of 'cnt'
7 | int n, max = 0, cnt = 0, cnt1 = 0, copie, cnt = 0, r;
| ^~~
main.c:7:21: note: previous definition of 'cnt' with type 'int'
7 | int n, max = 0, cnt = 0, cnt1 = 0, copie, cnt = 0, r;
| ^~~
main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:10:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin, "%d", &v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~