Borderou de evaluare (job #1405399)

Utilizator BlackLordFMI Alex Oprea BlackLord Data 29 martie 2015 10:30:47
Problema Inundatie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d", &n, &m); ^ user.cpp:8:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:12:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &x); ^ user.cpp:20:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &q); ^ user.cpp:23:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &x); ^ user.cpp:35:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", x); ^ user.cpp:6:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("inundatie.in", "r", stdin); ^ user.cpp:7:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("inundatie.out", "w", stdout); ^ user.cpp:8:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:12:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.cpp:20:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ user.cpp:23:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms296kbOK10
312ms432kbIncorect0
428ms612kbOK10
540ms748kbOK10
656ms892kbIncorect0
776ms1248kbOK10
8104ms1452kbIncorect0
9144ms1664kbIncorect0
100ms264kbOK10
Punctaj total60

Ceva nu functioneaza?