Borderou de evaluare (job #2105743)

Utilizator alexandra_paticaAndreea Alexandra Patica alexandra_patica Data 14 ianuarie 2018 01:10:05
Problema Flori5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &x); ^ user.cpp:22:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (a<b) printf("%d\n", a); ^ user.cpp:23:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] else if (a==b) printf("%d\n", a); ^ user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flori5.in", "r", stdin); ^ user.cpp:9:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flori5.out", "w", stdout); ^ user.cpp:11:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &n, &k); ^ user.cpp:13:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.cpp:17:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &m); ^ user.cpp:19:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms280kbIncorect0
30ms276kbIncorect0
40ms276kbOK10
50ms276kbOK10
60ms280kbOK10
74ms300kbIncorect0
8148ms1832kbIncorect0
9152ms1836kbIncorect0
10152ms1836kbIncorect0
Punctaj total40

Ceva nu functioneaza?