Borderou de evaluare (job #2174357)

Utilizator ana.pintiliciucAna Maria Pintiliciuc ana.pintiliciuc Data 16 martie 2018 11:44:33
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:29:10: warning: statement has no effect [-Wunused-value] for(i;i*i<=b;i++) ^ user.cpp: In function ‘int main()’: user.cpp:79:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:83: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:83:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:85:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", a-subsir()); ^ user.cpp:77: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:78: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:79:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:83: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
112ms1580kbOK1010
212ms1484kbOK1010
312ms1580kbOK1010
444ms1460kbOK1010
548ms1556kbOK1010
672ms1468kbOK1010
756ms1472kbOK1010
8Depăşit1228kbTime limit exceeded.00
9Depăşit1372kbTime limit exceeded.0
10Depăşit1276kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?