Borderou de evaluare (job #2812384)

Utilizator NadiraBodrogean Nadira Nadira Data 4 decembrie 2021 14:34:31
Problema Problema rucsacului Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:18:30: warning: array subscript 2 is above array bounds of 'int [2][10001]' [-Warray-bounds] 18 | dp[2][j]=max(dp[2][j],dp[1][j-v[i].greutate]+v[i].pret); | ~~~~^ main.cpp:18:17: warning: array subscript 2 is above array bounds of 'int [2][10001]' [-Warray-bounds] 18 | dp[2][j]=max(dp[2][j],dp[1][j-v[i].greutate]+v[i].pret); | ~~~~^ main.cpp:9:5: note: while referencing 'dp' 9 | int dp[2][10001]; | ^~ main.cpp:20:26: warning: array subscript 2 is above array bounds of 'int [2][10001]' [-Warray-bounds] 20 | dp[1][j]=dp[2][j]; | ~~~~^ main.cpp:9:5: note: while referencing 'dp' 9 | int dp[2][10001]; | ^~ main.cpp:22:15: warning: array subscript 2 is above array bounds of 'int [2][10001]' [-Warray-bounds] 22 | cout<<dp[2][G]; | ~~~~^ main.cpp:9:5: note: while referencing 'dp' 9 | int dp[2][10001]; | ^~ main.cpp:20:21: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' offset [80008, 80011] is out of the bounds [0, 80008] of object 'dp' with type 'int [2][10001]' [-Warray-bounds] 20 | dp[1][j]=dp[2][j]; | ~~~~~~~~^~~~~~~~~ main.cpp:9:5: note: 'dp' declared here 9 | int dp[2][10001]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms184kbIncorect00
22ms184kbIncorect0
32ms184kbIncorect00
42ms184kbIncorect0
52ms184kbIncorect0
62ms184kbIncorect00
72ms184kbIncorect0
86ms253kbIncorect00
96ms286kbIncorect0
102ms184kbIncorect0
1154ms245kbIncorect00
1235ms200kbIncorect0
1335ms200kbIncorect0
14107ms331kbIncorect00
15170ms348kbIncorect0
16108ms331kbIncorect0
1769ms331kbIncorect00
18209ms294kbIncorect0
19132ms331kbIncorect0
20136ms348kbIncorect0
Punctaj total0

Ceva nu functioneaza?