Pagini recente » Borderou de evaluare (job #2900216) | addk | Borderou de evaluare (job #3164471) | Borderou de evaluare (job #3169649) | Borderou de evaluare (job #2966773)
Borderou de evaluare (job #2966773)
Raport evaluator
Compilare:
main.cpp: In function 'int solve(int, int, int)':
main.cpp:83:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<event>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | while(j < events.size() && events[j].x <= i)
| ~~^~~~~~~~~~~~~~~
main.cpp:96:15: warning: iteration 200018 invokes undefined behavior [-Waggressive-loop-optimizations]
96 | dp[i] = tree[1].val;
| ~~~~~~^~~~~~~~~~~~~
main.cpp:81:22: note: within this loop
81 | for(int i=0,j=0;i<=2*N;++i)
| ~^~~~~
main.cpp:102:25: warning: array subscript 200018 is above array bounds of 'int [200018]' [-Warray-bounds]
102 | suf_dp[2*N] = dp[2*N];
| ~~~~~~^
main.cpp:20:5: note: while referencing 'dp'
20 | int dp[2*N];
| ^~
main.cpp:102:15: warning: array subscript 200018 is above array bounds of 'int [200018]' [-Warray-bounds]
102 | suf_dp[2*N] = dp[2*N];
| ~~~~~~~~~~^
main.cpp:22:5: note: while referencing 'suf_dp'
22 | int suf_dp[2*N];
| ^~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 4771kb | OK | 5 |
| 2 | 3ms | 4771kb | OK | 5 |
| 3 | 4ms | 4771kb | Incorect | 0 |
| 4 | 3ms | 4771kb | Incorect | 0 |
| 5 | 4ms | 4771kb | OK | 5 |
| 6 | 3ms | 4771kb | Incorect | 0 |
| 7 | 2ms | 4771kb | Incorect | 0 |
| 8 | 3ms | 4771kb | Incorect | 0 |
| 9 | 2ms | 4247kb | Incorect | 0 |
| 10 | 3ms | 4771kb | OK | 5 |
| 11 | 4ms | 4771kb | Incorect | 0 |
| 12 | 125ms | 8830kb | Incorect | 0 |
| 13 | 158ms | 8806kb | Incorect | 0 |
| 14 | 132ms | 8855kb | Incorect | 0 |
| 15 | 144ms | 8810kb | Incorect | 0 |
| 16 | 139ms | 8810kb | Incorect | 0 |
| 17 | 233ms | 11894kb | Incorect | 0 |
| 18 | 253ms | 12873kb | Incorect | 0 |
| 19 | 263ms | 12873kb | Incorect | 0 |
| 20 | 285ms | 12873kb | OK | 5 |
| Punctaj total | 25 |