Borderou de evaluare (job #638463)

Utilizator avatar Sebi_Maftei Maftei Sebastian Sebi_Maftei IP ascuns
Problemă Tren (clasa a 8-a) Compilator cpp-32
Rundă 4martie_vs_11-12 Status evaluat
Dată 4 mar. 2022 20:21:55 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void DP()': main.cpp:20:22: warning: unused variable 'x' [-Wunused-variable] 20 | int i, j, M = 0, x, h, sum; | ^ main.cpp:20:25: warning: unused variable 'h' [-Wunused-variable] 20 | int i, j, M = 0, x, h, sum; | ^ main.cpp:50:27: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds] 50 | M = max(M, dp[3][i]); | ~~~~~~~^ main.cpp:8:8: note: while referencing 'dp' 8 | int n, dp[3][50003], a[50003], k; | ^~ main.cpp:50:24: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds] 50 | M = max(M, dp[3][i]); | ~~~~^ main.cpp:8:8: note: while referencing 'dp' 8 | int n, dp[3][50003], a[50003], k; | ^~ main.cpp:46:35: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds] 46 | dp[3][i] = max(dp[3][i], sum + dp[2][j]); | ~~~~~~~^ main.cpp:8:8: note: while referencing 'dp' 8 | int n, dp[3][50003], a[50003], k; | ^~ main.cpp:46:32: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds] 46 | dp[3][i] = max(dp[3][i], sum + dp[2][j]); | ~~~~^ main.cpp:8:8: note: while referencing 'dp' 8 | int n, dp[3][50003], a[50003], k; | ^~ main.cpp:46:17: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds] 46 | dp[3][i] = max(dp[3][i], sum + dp[2][j]); | ~~~~^ main.cpp:8:8: note: while referencing 'dp' 8 | int n, dp[3][50003], a[50003], k; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Killed by Signal 11 0
2 1 ms 249 kb Killed by Signal 11 0
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb Killed by Signal 11 0
5 103 ms 249 kb Time limit exceeded 0
6 107 ms 512 kb Time limit exceeded 0
7 106 ms 380 kb Time limit exceeded 0
8 103 ms 380 kb Time limit exceeded 0
9 105 ms 512 kb Time limit exceeded 0
10 106 ms 774 kb Time limit exceeded 0
Punctaj total 0