Borderou de evaluare (job #3301833)

Utilizator Zeno1789Zeno Ciuca Zeno1789 Data 30 iunie 2025 13:25:35
Problema Suma si numarul divizorilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int32_t main()': main.cpp:41:16: warning: iteration 999998 invokes undefined behavior [-Waggressive-loop-optimizations] 41 | ciur[i]=1; | ~~~~~~~^~ main.cpp:40:20: note: within this loop 40 | for (int i=2; i<=1000000; i++) { | ~^~~~~~~~~ main.cpp:45:19: warning: iteration 999999 invokes undefined behavior [-Waggressive-loop-optimizations] 45 | if (ciur[i]) { | ~~~~~~^ main.cpp:44:20: note: within this loop 44 | for (int i=1; i<=1000000; i++) { | ~^~~~~~~~~ main.cpp:41:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 1000000 is out of the bounds [0, 1000000] of object 'ciur' with type 'bool [1000000]' [-Warray-bounds] 41 | ciur[i]=1; | ~~~~~~~^~ main.cpp:9:6: note: 'ciur' declared here 9 | bool ciur[1000000]; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
154ms1867kbTime limit exceeded00
26ms2023kbKilled by Signal 800
36ms2027kbKilled by Signal 800
46ms2023kbKilled by Signal 800
55ms2027kbKilled by Signal 800
66ms2068kbKilled by Signal 800
754ms1867kbTime limit exceeded00
86ms2023kbKilled by Signal 800
954ms1867kbTime limit exceeded0
1053ms1867kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?