Borderou de evaluare (job #2664624)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 29 octombrie 2020 00:12:03
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:13:34: warning: right shift count >= width of type [-Wshift-count-overflow] if( !(ciur[i >> (base + 1)] & (1 << ((i >> 1) % base))) ) ^ main.cpp:16:36: warning: right shift count >= width of type [-Wshift-count-overflow] ciur[j >> (base + 1)] |= (1 << ((j >> 1) % base)); ^ main.cpp:8:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ciur.in", "r", stdin); ^ main.cpp:9:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ciur.out", "w", stdout); ^ main.cpp:11:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:19:11: warning: 'nr' may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d\n", nr + 1); ~~~~~~^~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
22ms131kbIncorect0
33ms131kbIncorect0
43ms262kbKilled by Signal 110
52ms262kbKilled by Signal 110
63ms262kbKilled by Signal 110
73ms262kbKilled by Signal 110
83ms262kbKilled by Signal 110
93ms262kbKilled by Signal 110
103ms262kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?