Borderou de evaluare (job #3202758)

Utilizator PescarusTanislav Luca Andrei Pescarus Data 12 februarie 2024 11:19:44
Problema Subgeom Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

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
10ms303kbOkay5
21ms1081kbOkay5
30ms303kbIncorrect0
41ms1081kbIncorrect0
51ms1081kbIncorrect0
61ms303kbIncorrect0
75ms1081kbIncorrect0
89ms983kbIncorrect0
914ms999kbIncorrect0
1014ms1081kbIncorrect0
1119ms1011kbIncorrect0
120ms557kbIncorrect0
Punctaj total10

Ceva nu functioneaza?