Pagini recente »
Borderou de evaluare (job #546747)
|
Borderou de evaluare (job #281205)
|
Borderou de evaluare (job #219996)
|
Borderou de evaluare (job #220269)
|
Borderou de evaluare (job #638474)
Borderou de evaluare (job #638474)
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:52:27: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds]
52 | 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:52:24: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds]
52 | 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:48:35: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds]
48 | 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:48:32: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds]
48 | 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:48:17: warning: array subscript 3 is above array bounds of 'int [3][50003]' [-Warray-bounds]
48 | 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
|
241 kb
|
Killed by Signal 11
|
0
|
2
|
7 ms
|
249 kb
|
Killed by Signal 11
|
0
|
3
|
1 ms
|
241 kb
|
Incorect
|
0
|
4
|
1 ms
|
245 kb
|
Killed by Signal 11
|
0
|
5
|
103 ms
|
245 kb
|
Time limit exceeded
|
0
|
6
|
109 ms
|
507 kb
|
Time limit exceeded
|
0
|
7
|
109 ms
|
380 kb
|
Time limit exceeded
|
0
|
8
|
100 ms
|
507 kb
|
Time limit exceeded
|
0
|
9
|
101 ms
|
512 kb
|
Time limit exceeded
|
0
|
10
|
109 ms
|
643 kb
|
Time limit exceeded
|
0
|
Punctaj total
|
0
|