Borderou de evaluare (job #2979527)

Utilizator siliviuSilion Liviu siliviu Data 15 februarie 2023 12:56:15
Problema Robot2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void scan()': main.cpp:38:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses] 38 | #define FOR(i,a,b) for(int (i)=(a);(i)<=(b);++(i)) | ^ main.cpp:80:2: note: in expansion of macro 'FOR' 80 | FOR(i,1,N) | ^~~ main.cpp:38:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses] 38 | #define FOR(i,a,b) for(int (i)=(a);(i)<=(b);++(i)) | ^ main.cpp:81:2: note: in expansion of macro 'FOR' 81 | FOR(j,1,N) | ^~~ main.cpp: In function 'int cost(int, int)': main.cpp:39:28: warning: unnecessary parentheses in declaration of 'k1' [-Wparentheses] 39 | #define REP(i, N) for (int (i)=0;(i)<(int)(N);++(i)) | ^ main.cpp:96:2: note: in expansion of macro 'REP' 96 | REP(k1,2) | ^~~ main.cpp:39:28: warning: unnecessary parentheses in declaration of 'k2' [-Wparentheses] 39 | #define REP(i, N) for (int (i)=0;(i)<(int)(N);++(i)) | ^ main.cpp:97:2: note: in expansion of macro 'REP' 97 | REP(k2,2) | ^~~ main.cpp: In function 'void BFS(int, int, int, int, int (*)[1010][1010])': main.cpp:39:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses] 39 | #define REP(i, N) for (int (i)=0;(i)<(int)(N);++(i)) | ^ main.cpp:117:2: note: in expansion of macro 'REP' 117 | REP(k,4) | ^~~ main.cpp:39:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses] 39 | #define REP(i, N) for (int (i)=0;(i)<(int)(N);++(i)) | ^ main.cpp:141:4: note: in expansion of macro 'REP' 141 | REP(k,4) | ^~~ main.cpp:142:73: warning: array subscript has type 'char' [-Wchar-subscripts] 142 | if( ok(x + xx[k],y + yy[k]) && C[k & 1][x + xx[k] ][y + yy[k] ] > C[dir][x][y] + (dir != (k & 1)) ) | ^~~ main.cpp:145:44: warning: array subscript has type 'char' [-Wchar-subscripts] 145 | C[newdir][x + xx[k] ][y + yy[k] ] = C[dir][x][y] + (dir != newdir); | ^~~ main.cpp: In function 'void solve()': main.cpp:39:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses] 39 | #define REP(i, N) for (int (i)=0;(i)<(int)(N);++(i)) | ^ main.cpp:165:2: note: in expansion of macro 'REP'
Test Timp executie Memorie folosita Mesaj Punctaj/test
113ms282kbKilled by Signal 110
220ms299kbKilled by Signal 110
314ms286kbKilled by Signal 110
415ms278kbKilled by Signal 110
514ms184kbKilled by Signal 110
620ms294kbKilled by Signal 110
714ms286kbKilled by Signal 110
815ms278kbKilled by Signal 110
914ms286kbKilled by Signal 110
1020ms299kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?