Pagini recente » Borderou de evaluare (job #1102583) | Borderou de evaluare (job #1749612) | Borderou de evaluare (job #56838) | Borderou de evaluare (job #2924309) | Borderou de evaluare (job #3202758)
Borderou de evaluare (job #3202758)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:48:31: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
48 | if(first_pos[d] == 0){
| ~~~~~~~~~~~^
main.cpp:47:30: note: within this loop
47 | for(int d = 1; d <= 100005; d++){
| ~~^~~~~~~~~
main.cpp:68:40: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
68 | first_pos[i] = last_pos[i] = 0;
| ~~~~~~~~~~~~^~~
main.cpp:67:26: note: within this loop
67 | for(int i = 1; i <= 100005; i++){
| ~~^~~~~~~~~
main.cpp:68:40: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 400023] is out of the bounds [0, 400020] of object 'last_pos' with type 'int [100005]' [-Warray-bounds]
68 | first_pos[i] = last_pos[i] = 0;
| ~~~~~~~~~~~~^~~
main.cpp:4:33: note: 'last_pos' declared here
4 | int v[nmax], first_pos[100005], last_pos[100005], dp[nmax];
| ^~~~~~~~
main.cpp:68:26: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 400023] is out of the bounds [0, 400020] of object 'first_pos' with type 'int [100005]' [-Warray-bounds]
68 | first_pos[i] = last_pos[i] = 0;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
main.cpp:4:14: note: 'first_pos' declared here
4 | int v[nmax], first_pos[100005], last_pos[100005], dp[nmax];
| ^~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Okay | 5 |
2 | 1ms | 1081kb | Okay | 5 |
3 | 0ms | 303kb | Incorrect | 0 |
4 | 1ms | 1081kb | Incorrect | 0 |
5 | 1ms | 1081kb | Incorrect | 0 |
6 | 1ms | 303kb | Incorrect | 0 |
7 | 5ms | 1081kb | Incorrect | 0 |
8 | 9ms | 983kb | Incorrect | 0 |
9 | 14ms | 999kb | Incorrect | 0 |
10 | 14ms | 1081kb | Incorrect | 0 |
11 | 19ms | 1011kb | Incorrect | 0 |
12 | 0ms | 557kb | Incorrect | 0 |
Punctaj total | 10 |