Borderou de evaluare (job #604194)

Utilizator avatar StefanSan Stanescu Stefan StefanSan IP ascuns
Problemă Traseu (clasele 11 și 12) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 aug. 2021 11:11:50 Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:26:64: warning: array subscript 2 is above array bounds of 'int [2][501]' [-Warray-bounds] 26 | dp[2][j] = a[i][j] + max(dp[1][j], dp[2][j - 1]), dp[1][j] = dp[2][j]; | ~~~~^ main.cpp:26:29: warning: array subscript 2 is above array bounds of 'int [2][501]' [-Warray-bounds] 26 | dp[2][j] = a[i][j] + max(dp[1][j], dp[2][j - 1]), dp[1][j] = dp[2][j]; | ~~~~^ main.cpp:10:5: note: while referencing 'dp' 10 | int dp[2][501]; | ^~ main.cpp:28:20: warning: array subscript 2 is above array bounds of 'int [2][501]' [-Warray-bounds] 28 | out << dp[2][m]; | ~~~~^ main.cpp:10:5: note: while referencing 'dp' 10 | int dp[2][501]; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb Incorect 0
2 2 ms 131 kb OK 10
3 1 ms 131 kb OK 10
4 1 ms 262 kb Killed by Signal 11 0
5 1 ms 262 kb Killed by Signal 11 0
6 1 ms 262 kb Killed by Signal 11 0
7 1 ms 258 kb Killed by Signal 11 0
8 21 ms 524 kb Killed by Signal 11 0
9 36 ms 1044 kb Killed by Signal 11 0
10 73 ms 1179 kb Killed by Signal 11 0
Punctaj total 20