Borderou de evaluare (job #2174567)

Utilizator ana.pintiliciucAna Maria Pintiliciuc ana.pintiliciuc Data 16 martie 2018 12:35:42
Problema Principiul includerii si excluderii Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘void diviz()’: user.cpp:20:10: warning: statement has no effect [-Wunused-value] for(i;i*i<=b;i++) ^ user.cpp: In function ‘int main()’: user.cpp:69:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:73:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d", &a, &b); ^ user.cpp:73:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:75:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", a-subsir()); ^ user.cpp:67:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pinex.in", "r", stdin); ^ user.cpp:68:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pinex.out", "w", stdout); ^ user.cpp:69:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:73:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1444kbOK1010
20ms1436kbOK1010
30ms1344kbOK1010
4116ms1420kbOK1010
5128ms1344kbOK1010
6208ms1432kbOK1010
7148ms1428kbOK1010
8Depăşit1208kbTime limit exceeded.00
9Depăşit1208kbTime limit exceeded.0
10Depăşit1204kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?