Borderou de evaluare (job #773677)

Utilizator avatar Himai Dragnea Mihai Alexandru Himai IP ascuns
Problemă Lasere (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 12 apr. 2024 14:17:15 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:51:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 51 | for (k = 0; k < 16; k += 2) | ^~~ main.cpp:54:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 54 | if (matrix[i][j] > matrix[i + pos[k]][j + pos[k + 1]]){ | ^~ main.cpp:54:52: warning: array subscript 16 is above array bounds of 'int [16]' [-Warray-bounds=] 54 | if (matrix[i][j] > matrix[i + pos[k]][j + pos[k + 1]]){ | ~~~~~^ main.cpp:47:9: note: while referencing 'pos' 47 | int pos[16] = {-1, 0, 0, -1, 1, 0, 0, 1, -1, -1, -1, 1, 1, 1, 1, -1}, counter = 0; | ^~~ main.cpp:54:68: warning: array subscript 17 is above array bounds of 'int [16]' [-Warray-bounds=] 54 | if (matrix[i][j] > matrix[i + pos[k]][j + pos[k + 1]]){ | ~~~~~~~~~^ main.cpp:47:9: note: while referencing 'pos' 47 | int pos[16] = {-1, 0, 0, -1, 1, 0, 0, 1, -1, -1, -1, 1, 1, 1, 1, -1}, counter = 0; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb Killed by Signal 11 0
2 1 ms 249 kb Killed by Signal 11 0
3 1 ms 249 kb Killed by Signal 11 0
4 1 ms 249 kb Killed by Signal 11 0
5 9 ms 249 kb Killed by Signal 11 0
6 1 ms 249 kb Killed by Signal 11 0
7 1 ms 249 kb Killed by Signal 11 0
8 1 ms 249 kb Killed by Signal 11 0
9 1 ms 249 kb Killed by Signal 11 0
10 1 ms 249 kb Killed by Signal 11 0
Punctaj total 0