Borderou de evaluare (job #3235871)

Utilizator iusty64Iustin Epanu iusty64 Data 23 iunie 2024 12:12:45
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:21:12: warning: iteration 5005 invokes undefined behavior [-Waggressive-loop-optimizations] 21 | a[i] = 0; fr[i] = 0; dp[i] = 0; | ~~~~~^~~ main.cpp:20:22: note: within this loop 20 | for(int i = 0; i <= Vmax; i++){ | ~~^~~~~~~ main.cpp:33:15: warning: iteration 5005 invokes undefined behavior [-Waggressive-loop-optimizations] 33 | dp[o] = 0; fr[o] = 0; | ~~~~~~^~~ main.cpp:32:24: note: within this loop 32 | for(int o = 0; o <= Vmax; o++){ | ~~^~~~~~~ main.cpp:21:12: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [20020, 20023] is out of the bounds [0, 20020] of object 'a' with type 'int [5005]' [-Warray-bounds] 21 | a[i] = 0; fr[i] = 0; dp[i] = 0; | ~~~~~^~~ main.cpp:8:5: note: 'a' declared here 8 | int a[Vmax], fr[Vmax], dp[Vmax]; | ^ main.cpp:21:23: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [20020, 20023] is out of the bounds [0, 20020] of object 'fr' with type 'int [5005]' [-Warray-bounds] 21 | a[i] = 0; fr[i] = 0; dp[i] = 0; | ~~~~~~^~~ main.cpp:8:14: note: 'fr' declared here 8 | int a[Vmax], fr[Vmax], dp[Vmax]; | ^~ main.cpp:21:34: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [20020, 20023] is out of the bounds [0, 20020] of object 'dp' with type 'int [5005]' [-Warray-bounds] 21 | a[i] = 0; fr[i] = 0; dp[i] = 0; | ~~~~~~^~~ main.cpp:8:24: note: 'dp' declared here 8 | int a[Vmax], fr[Vmax], dp[Vmax]; | ^~ main.cpp:33:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [20020, 20023] is out of the bounds [0, 20020] of object 'dp' with type 'int [5005]' [-Warray-bounds] 33 | dp[o] = 0; fr[o] = 0; | ~~~~~~^~~ main.cpp:8:24: note: 'dp' declared here 8 | int a[Vmax], fr[Vmax], dp[Vmax]; | ^~ main.cpp:33:26: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [20020, 20023] is out of the bounds [0, 20020] of object 'fr' with type 'int [5005]' [-Warray-bounds] 33 | dp[o] = 0; fr[o] = 0; | ~~~~~~^~~ main.cpp:8:14: note: 'fr' declared here 8 | int a[Vmax], fr[Vmax], dp[Vmax]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOkay5
21ms303kbOkay5
31ms303kbIncorrect0
41ms303kbIncorrect0
51ms303kbIncorrect0
64ms303kbIncorrect0
78ms466kbKilled by Signal 110
88ms466kbKilled by Signal 110
95ms471kbKilled by Signal 110
1011ms483kbKilled by Signal 110
118ms475kbKilled by Signal 110
128ms499kbKilled by Signal 110
Punctaj total10

Ceva nu functioneaza?