Borderou de evaluare (job #2872102)

Utilizator Ricardo03Petrovici Ricardo Ricardo03 Data 16 martie 2022 12:19:09
Problema Euro3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:20:17: warning: array subscript 2 is above array bounds of 'int [2][8002]' [-Warray-bounds] 20 | dp[2][a] = a; | ~~~~^ main.cpp:3:16: note: while referencing 'dp' 3 | int sol[8002], dp[2][8002], v[4005], c[4005], a, t, k, i, j, vmax, n; | ^~ main.cpp:26:21: warning: array subscript 2 is above array bounds of 'int [2][8002]' [-Warray-bounds] 26 | dp[2][j] = max(dp[1][j], dp[1][j - a]); | ~~~~^ main.cpp:3:16: note: while referencing 'dp' 3 | int sol[8002], dp[2][8002], v[4005], c[4005], a, t, k, i, j, vmax, n; | ^~ main.cpp:29:32: warning: array subscript 2 is above array bounds of 'int [2][8002]' [-Warray-bounds] 29 | dp[1][j] = dp[2][j]; | ~~~~^ main.cpp:3:16: note: while referencing 'dp' 3 | int sol[8002], dp[2][8002], v[4005], c[4005], a, t, k, i, j, vmax, n; | ^~ main.cpp:35:28: warning: array subscript 2 is above array bounds of 'int [2][8002]' [-Warray-bounds] 35 | dp[1][i] = dp[2][i] = 0; | ~~~~^ main.cpp:3:16: note: while referencing 'dp' 3 | int sol[8002], dp[2][8002], v[4005], c[4005], a, t, k, i, j, vmax, n; | ^~ main.cpp:29:26: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' offset 64020 is out of the bounds [0, 64016] of object 'dp' with type 'int [2][8002]' [-Warray-bounds] 29 | dp[1][j] = dp[2][j]; | ~~~~~~~~~^~~~~~~~~~ main.cpp:3:16: note: 'dp' declared here 3 | int sol[8002], dp[2][8002], v[4005], c[4005], a, t, k, i, j, vmax, n; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms188kbIncorect0
22ms184kbIncorect0
32ms184kbIncorect0
42ms184kbIncorect0
52ms184kbIncorect0
625ms327kbIncorect0
750ms344kbIncorect0
888ms360kbIncorect0
9112ms364kbIncorect0
10127ms393kbIncorect0
Punctaj total0

Ceva nu functioneaza?