Borderou de evaluare (job #3233289)

Utilizator Toni07Stoica Victor Toni07 Data 2 iunie 2024 21:32:42
Problema Profit Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:28:49: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 28 | for (int i = 1; i <= n; ++i) dp[1][i] = dp[2][i] = 0; | ~~~~^ main.cpp:8:27: note: while referencing 'dp' 8 | int n, v[nmax], v2[nmax], dp[2][nmax]; | ^~ main.cpp:28:54: warning: 'void* __builtin_memset(void*, int, long unsigned int)' offset 16044 is out of the bounds [0, 16040] of object 'dp' with type 'int [2][2005]' [-Warray-bounds] 28 | for (int i = 1; i <= n; ++i) dp[1][i] = dp[2][i] = 0; | ~~~~~~~~~^~~ main.cpp:8:27: note: 'dp' declared here 8 | int n, v[nmax], v2[nmax], dp[2][nmax]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbIncorect0
30ms303kbIncorect0
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbIncorect0
71ms303kbIncorect0
82ms303kbIncorect0
94ms303kbIncorect0
107ms303kbIncorect0
Punctaj total10

Ceva nu functioneaza?