Borderou de evaluare (job #791459)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Furnica (clasa a 6-a) | Compilator | c-32 |
Rundă | Tema 13 Clasa a 6-a | Status | evaluat |
Dată | 27 oct. 2024 10:58:06 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:5:42: warning: excess elements in array initializer
5 | int lin1[8] = {0, -1, -1, 0, 1, 1, 1, 0, -1};
| ^
main.c:5:42: note: (near initialization for 'lin1')
main.c:6:42: warning: excess elements in array initializer
6 | int col1[8] = {0, 0, 1, 1, 1, 0, -1, -1, -1};
| ^
main.c:6:42: note: (near initialization for 'col1')
main.c: In function 'main':
main.c:37:1: error: expected declaration or statement at end of input
37 | }
| ^
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(in, "%d%d", &n, &k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:20:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf(in, "%d", &x);
| ^~~~~~~~~~~~~~~~~~~~