Borderou de evaluare (job #1297167)

Utilizator topala.andreiTopala Andrei topala.andrei Data 21 decembrie 2014 18:51:26
Problema Numere 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld", &n); ^ user.cpp:18:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld", &auxi); ^ user.cpp:26:31: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld ", i); ^ user.cpp:32:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld ", i); ^ user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("numere5.in", "r", stdin); ^ user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("numere5.out", "w", stdout); ^ user.cpp:12:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &n); ^ user.cpp:18:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &auxi); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
160ms272kbOK1050
20ms244kbOK10
372ms276kbOK10
440ms268kbOK10
592ms288kbOK10
684ms256kbOK1050
7112ms300kbOK10
8132ms304kbOK10
980ms244kbOK10
10108ms272kbOK10
Punctaj total100

Ceva nu functioneaza?