Borderou de evaluare (job #2228953)

Utilizator inquisitorAnders inquisitor Data 5 august 2018 15:17:50
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘unsigned int sieve(unsigned int)’: user.cpp:9:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 2; i <= n; ++i) ~~^~~~ user.cpp:15:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = i + i; j <= n; j += i) ~~^~~~ user.cpp: In function ‘int main()’: user.cpp:27: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:28: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:30: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
10ms864kbOK10
20ms876kbOK10
30ms864kbOK10
464ms4556kbOK10
572ms4948kbOK10
696ms5956kbOK10
7Depăşit6508kbTime limit exceeded.0
848msDepăşitMemory limit exceeded.0
948msDepăşitMemory limit exceeded.0
1048msDepăşitMemory limit exceeded.0
Punctaj total60

Ceva nu functioneaza?