Borderou de evaluare (job #687883)

Utilizator avatar Nasa1004 Ema Nicole Gheorghe Nasa1004 IP ascuns
Problemă Vecini (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 ian. 2023 21:43:00 Scor 30

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:15:30: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 15 | v[1][0]=2, v[2][0]=2, v[3][0]=2; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:16:34: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 16 | v[1][m+1]=2, v[2][m+1]=2, v[3][m+1]=2; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:67:40: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 67 | if(poz<=k && a==rand+3) v[3][b]++; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:67:40: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 67 | if(poz<=k && a==rand+3) v[3][b]++; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:62:33: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 62 | else v[i][j]=0; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:61:42: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 61 | if(rand==n-2) v[i][j]=2; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:47:23: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 47 | if(v[3][j-1]==v[2][j]) cnt++; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:48:23: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds] 48 | if(v[3][j]==v[2][j]) cnt++; | ~~~^ main.cpp:4:5: note: while referencing 'v' 4 | int v[3][1002]; | ^ main.cpp:49:23: warning: array subscript 3 is above array bounds of 'int [3][1002]' [-Warray-bounds]
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 10
2 1 ms 114 kb OK 10
3 1 ms 114 kb OK 10
4 8 ms 249 kb Killed by Signal 11 0
5 57 ms 249 kb Killed by Signal 11 0
6 65 ms 249 kb Killed by Signal 11 0
7 1 ms 118 kb Killed by Signal 11 0
8 1 ms 118 kb Killed by Signal 11 0
9 68 ms 118 kb Killed by Signal 11 0
10 15 ms 118 kb Killed by Signal 11 0
Punctaj total 30