Borderou de evaluare (job #2926245)

Utilizator coso2312Cosmin Bucur coso2312 Data 17 octombrie 2022 14:03:24
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:15:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 15 | if (i % 2 == 0 && i != 2 || i % 3 == 0 && i != 3) { | ~~~~~~~~~~~^~~~~~~~~ main.cpp:11:14: warning: iteration 1999998 invokes undefined behavior [-Waggressive-loop-optimizations] 11 | a[i] = 0; | ~~~~~^~~ main.cpp:10:23: note: within this loop 10 | for (int i = 2; i <= 2000000; ++i) { | ~~^~~~~~~~~~ main.cpp:11:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [8000000, 8000003] is out of the bounds [0, 8000000] of object 'a' with type 'int [2000000]' [-Warray-bounds] 11 | a[i] = 0; | ~~~~~^~~ main.cpp:8:9: note: 'a' declared here 8 | int a[2000000], n; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbKilled by Signal 110
20ms184kbKilled by Signal 110
30ms184kbKilled by Signal 110
40ms184kbKilled by Signal 110
50ms184kbKilled by Signal 110
60ms184kbKilled by Signal 110
70ms184kbKilled by Signal 110
80ms184kbKilled by Signal 110
90ms184kbKilled by Signal 110
100ms184kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?