Borderou de evaluare (job #1429967)

Utilizator atatomirTatomir Alex atatomir Data 7 mai 2015 17:37:40
Problema Rk Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:32:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&x); ^ user.cpp:48:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&q); ^ user.cpp:50:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld %ld",&r,&k); ^ user.cpp:50:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:65:27: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld\n",ans); ^ user.cpp:26:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rk.in","r",stdin); ^ user.cpp:27:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rk.out","w",stdout); ^ user.cpp:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:32:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&x); ^ user.cpp:48:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&q); ^ user.cpp:50:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&r,&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbIncorect0
20ms992kbIncorect0
348ms7768kbIncorect0
4196ms14828kbIncorect0
5380ms15756kbIncorect0
652ms7712kbIncorect0
7212ms15116kbIncorect0
8Depăşit15764kbTime limit exceeded.0
9Depăşit15760kbTime limit exceeded.0
10400ms15760kbIncorect0
Punctaj total0

Ceva nu functioneaza?