Borderou de evaluare (job #792874)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Turn (clasa a 6-a) | Compilator | c-32 |
Rundă | Tema 14 Clasa a 6-a | Status | evaluat |
Dată | 3 nov. 2024 16:10:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:9:28: error: redeclaration of 'k' with no linkage
9 | int n, k, i, j, m, k;
| ^
main.c:9:16: note: previous declaration of 'k' with type 'int'
9 | int n, k, i, j, m, k;
| ^
main.c:17:29: warning: statement with no effect [-Wunused-value]
17 | for(i=0;i<n;i)
| ^
main.c:11:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin, "%d %d", &n, &k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin, "%d", &v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~