Borderou de evaluare (job #1217868)

Utilizator azkabancont-vechi azkaban Data 8 august 2014 14:50:04
Problema Beri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d",&n,&k); ^ user.cpp:17:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:18:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d%d",&Q,&X,&Y,&Z); ^ user.cpp:18:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:18:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:18:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:25:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",suma); ^ user.cpp: In function ‘void openIOFiles()’: user.cpp:8:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("beri.in","r",stdin); ^ user.cpp:9:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("beri.out","w",stdout); ^ user.cpp: In function ‘int main()’: user.cpp:17:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&k); ^ user.cpp:18:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&Q,&X,&Y,&Z); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms276kbIncorect0
356ms324kbIncorect0
4Depăşit564kbTime limit exceeded.0
5Depăşit1348kbTime limit exceeded.0
6Depăşit2324kbTime limit exceeded.0
7Depăşit4296kbTime limit exceeded.0
8Depăşit4296kbTime limit exceeded.0
9Depăşit4296kbTime limit exceeded.0
10Depăşit4296kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?