Pagini recente » Borderou de evaluare (job #1340294) | Borderou de evaluare (job #1025301) | Borderou de evaluare (job #2893702) | Borderou de evaluare (job #2622529) | Borderou de evaluare (job #2872102)
Borderou de evaluare (job #2872102)
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 |
1 | 2ms | 188kb | Incorect | 0 |
2 | 2ms | 184kb | Incorect | 0 |
3 | 2ms | 184kb | Incorect | 0 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 2ms | 184kb | Incorect | 0 |
6 | 25ms | 327kb | Incorect | 0 |
7 | 50ms | 344kb | Incorect | 0 |
8 | 88ms | 360kb | Incorect | 0 |
9 | 112ms | 364kb | Incorect | 0 |
10 | 127ms | 393kb | Incorect | 0 |
Punctaj total | 0 |