Borderou de evaluare (job #732140)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Peridia (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 sept. 2023 15:05:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:50:25: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | if( tab[lin + dirl[dir]][col + dirc[dir]] >= 0 ){
| ^
main.c:50:42: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | if( tab[lin + dirl[dir]][col + dirc[dir]] >= 0 ){
| ^
main.c:52:11: error: 'aux' undeclared (first use in this function)
52 | aux = a;
| ^~~
main.c:52:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:64:18: error: expected ';' before 'b'
64 | aux = b
| ^
| ;
65 | b = a;
| ~
main.c:69:20: warning: array subscript has type 'char' [-Wchar-subscripts]
69 | lin += dirl[dir];
| ^
main.c:13:54: warning: unused variable 'oc' [-Wunused-variable]
13 | int n, x, y, z, k, i, lin, col, a, b, c, oa, ob, oc;
| ^~
main.c:13:50: warning: unused variable 'ob' [-Wunused-variable]
13 | int n, x, y, z, k, i, lin, col, a, b, c, oa, ob, oc;
| ^~
main.c:13:46: warning: unused variable 'oa' [-Wunused-variable]
13 | int n, x, y, z, k, i, lin, col, a, b, c, oa, ob, oc;
| ^~
main.c:29:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | fscanf( fin, "%d%d%d%d%d", &n, &x, &y, &z, &k );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~