Borderou de evaluare (job #2174273)

Utilizator ana.pintiliciucAna Maria Pintiliciuc ana.pintiliciuc Data 16 martie 2018 11:25:51
Problema Principiul includerii si excluderii Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void diviz()’: user.cpp:27:10: warning: statement has no effect [-Wunused-value] for(i;i*i<b;i++) ^ user.cpp: In function ‘int main()’: user.cpp:76:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:80: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:80:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:82:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", a-subsir()); ^ user.cpp:74: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:75: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:76:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:80: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
116ms4452kbOK1010
212ms4368kbIncorect00
312ms4384kbIncorect00
448ms4444kbOK1010
552ms4460kbOK1010
672ms4440kbOK1010
756ms4460kbOK1010
8Depăşit4176kbTime limit exceeded.00
9Depăşit4216kbTime limit exceeded.0
10Depăşit4124kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?