Borderou de evaluare (job #795893)

Utilizator avatar Sebi_Ionescu Ionescu Sebastian Andrei Sebi_Ionescu IP ascuns
Problemă Roboti (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 18 nov. 2024 14:58:21 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:47:50: error: expected ';' before 'You' 47 | else if (type == 'R') dir = 3 | ^ | ; ...... 53 | You said: | ~~~ main.c:47:26: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers 47 | else if (type == 'R') dir = 3 | ^~ main.c:47:26: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory main.c:143:1: error: expected declaration or statement at end of input 143 | } | ^ main.c:143:1: error: expected declaration or statement at end of input main.c:143:1: error: expected declaration or statement at end of input main.c:143:1: error: expected declaration or statement at end of input main.c:143:1: error: expected declaration or statement at end of input main.c:17:11: warning: unused variable 'fout' [-Wunused-variable] 17 | FILE *fout = fopen("roboti.out", "w"); | ^~~~ main.c:13:9: warning: unused variable 'remaining_robots' [-Wunused-variable] 13 | int remaining_robots = 0; | ^~~~~~~~~~~~~~~~ main.c:12:13: warning: unused variable 'nj' [-Wunused-variable] 12 | int ni, nj; | ^~ main.c:12:9: warning: unused variable 'ni' [-Wunused-variable] 12 | int ni, nj; | ^~ main.c:11:9: warning: unused variable 'dy' [-Wunused-variable] 11 | int dy[] = {0, 0, -1, 1}; // U, D, L, R | ^~ main.c:10:9: warning: unused variable 'dx' [-Wunused-variable] 10 | int dx[] = {-1, 1, 0, 0}; // U, D, L, R | ^~ main.c:9:30: warning: variable 'next_grid' set but not used [-Wunused-but-set-variable] 9 | char grid[MAX_N][MAX_N], next_grid[MAX_N][MAX_N]; | ^~~~~~~~~ main.c:7:21: warning: variable 'dir' set but not used [-Wunused-but-set-variable] 7 | int i, j, step, dir; | ^~~ main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:21:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(fin, "%d", &k); | ^~~~~~~~~~~~~~~~~~~~~ main.c:25:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]