Borderou de evaluare (job #3199586)

Utilizator RosuDragos123Rosu Dragos RosuDragos123 Data 1 februarie 2024 20:59:42
Problema Hacker3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:13:17: warning: iteration 32 invokes undefined behavior [-Waggressive-loop-optimizations] 13 | dp[0][i]=INF, dp[1][i]=INF; | ~~~~~~~~^~~~ main.cpp:12:19: note: within this loop 12 | for(int i=0; i<=32; i++) | ~^~~~ main.cpp:25:41: warning: iteration 32 invokes undefined behavior [-Waggressive-loop-optimizations] 25 | dp[0][dublari]=dp[1][dublari]; | ~~~~~~~~~~~~~^ main.cpp:24:35: note: within this loop 24 | for(int dublari=0; dublari<=32; dublari++) | ~~~~~~~^~~~ main.cpp:25:27: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset [512, 519] is out of the bounds [0, 512] of object 'dp' with type 'long long int [2][32]' [-Warray-bounds] 25 | dp[0][dublari]=dp[1][dublari]; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:7:11: note: 'dp' declared here 7 | long long dp[2][32]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK55
20ms303kbOK55
30ms303kbOK55
40ms303kbOK55
50ms303kbOK55
60ms303kbOK55
70ms303kbOK55
80ms303kbOK55
91ms303kbOK530
101ms303kbOK5
111ms303kbOK5
121ms303kbOK5
131ms303kbOK5
141ms303kbOK5
159ms393kbMemory limit exceeded00
169ms303kbOK5
179ms303kbOK5
188ms303kbOK5
199ms303kbOK5
2011ms401kbMemory limit exceeded0
Punctaj total70

Ceva nu functioneaza?