Pagini recente »
Borderou de evaluare (job #797857)
|
Borderou de evaluare (job #280985)
|
Borderou de evaluare (job #352551)
|
Borderou de evaluare (job #471468)
|
Borderou de evaluare (job #790156)
Borderou de evaluare (job #790156)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:19:31: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations]
19 | dp[i][j]=dp[i-1][j]+v[i];
| ~~~~~~~~~^
main.cpp:18:23: note: within this loop
18 | for(int j=2; j<=3; j++)
| ~^~~
main.cpp:23:18: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds=]
23 | cout<<dp[n][3];
| ^
main.cpp:5:18: note: while referencing 'dp'
5 | int n,m,v[50001],dp[50001][3],s[50001];
| ^~
main.cpp:19:31: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds=]
19 | dp[i][j]=dp[i-1][j]+v[i];
| ~~~~~~~~~^
main.cpp:5:18: note: while referencing 'dp'
5 | int n,m,v[50001],dp[50001][3],s[50001];
| ^~
main.cpp:19:20: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds=]
19 | dp[i][j]=dp[i-1][j]+v[i];
| ~~~~~~~^
main.cpp:5:18: note: while referencing 'dp'
5 | int n,m,v[50001],dp[50001][3],s[50001];
| ^~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
Incorect
|
0
|
2
|
1 ms
|
507 kb
|
Incorect
|
0
|
3
|
1 ms
|
266 kb
|
Incorect
|
0
|
4
|
1 ms
|
245 kb
|
Incorect
|
0
|
5
|
1 ms
|
249 kb
|
Incorect
|
0
|
6
|
9 ms
|
512 kb
|
Incorect
|
0
|
7
|
9 ms
|
770 kb
|
Incorect
|
0
|
8
|
9 ms
|
761 kb
|
Incorect
|
0
|
9
|
9 ms
|
512 kb
|
Incorect
|
0
|
10
|
19 ms
|
1290 kb
|
Incorect
|
0
|
Punctaj total
|
0
|