Borderou de evaluare (job #2228866)

Utilizator inquisitorAnders inquisitor Data 5 august 2018 10:06:42
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘unsigned int sieve(unsigned int)’: user.cpp:33:19: warning: operation on ‘i’ may be undefined [-Wsequence-point] ((p[++i >> 5] & (1 << (i & 31))) == 0); ^~~ user.cpp:33:19: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp:33:19: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp:7:29: warning: unused variable ‘k’ [-Wunused-variable] register unsigned i, j, k, nr = 1 + (n > 2); ^ user.cpp: In function ‘int main()’: user.cpp:41: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); ^ user.cpp:42: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); ^ user.cpp:44:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] unsigned N; scanf("%d", &N); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms752kbOK10
20ms876kbOK10
30ms876kbIncorect0
40ms932kbIncorect0
50ms856kbIncorect0
64ms756kbIncorect0
74ms752kbIncorect0
84ms792kbIncorect0
94ms792kbIncorect0
104ms804kbIncorect0
Punctaj total20

Ceva nu functioneaza?