Borderou de evaluare (job #1564251)

Utilizator HorjuRaresHorju Rares HorjuRares Data 9 ianuarie 2016 16:05:17
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int ciur(int)’: user.cpp:7:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(a<2 || a>2 && a%2==0) ^ user.cpp: In function ‘int main()’: user.cpp:20: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:21: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:24:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms264kbOK10
312ms264kbOK10
4Depăşit240kbTime limit exceeded.0
5Depăşit244kbTime limit exceeded.0
6Depăşit240kbTime limit exceeded.0
7Depăşit244kbTime limit exceeded.0
8Depăşit240kbTime limit exceeded.0
9Depăşit240kbTime limit exceeded.0
10Depăşit244kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?