Borderou de evaluare (job #1657874)

Utilizator ana-maria.simiAna-Maria Simionescu ana-maria.simi Data 20 martie 2016 21:04:07
Problema Gaz Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld%ld%ld%ld%ld", &l, &p, &d, &c, &n); ^ user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:8:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:10:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] {scanf("%ld", &g[i]); ^ user.cpp:6:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] {freopen ("gaz.in", "r", stdin); ^ user.cpp:7:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gaz.out", "w", stdout); ^ user.cpp:8:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld%ld%ld", &l, &p, &d, &c, &n); ^ user.cpp:10:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] {scanf("%ld", &g[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms460kbOK10
20ms456kbOK10
30ms460kbOK10
40ms460kbOK10
50ms460kbOK10
60ms464kbOK10
70ms460kbOK10
80ms464kbOK10
90ms468kbOK10
1048ms472kbOK10
Punctaj total100

Ceva nu functioneaza?