Borderou de evaluare (job #1484745)

Utilizator akaprosAna Kapros akapros Data 11 septembrie 2015 19:36:10
Problema Rest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:55:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[12]’ [-Wformat=] scanf("%s\n", &sy); ^ user.cpp: In function ‘void write()’: user.cpp:70:42: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[12]’ [-Wformat=] scanf("%s %s %s\n", &sa, &sx, &sy); ^ user.cpp:70:42: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[12]’ [-Wformat=] user.cpp:70:42: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[12]’ [-Wformat=] user.cpp: In function ‘void read()’: user.cpp:47:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rest.in", "r", stdin); ^ user.cpp:48:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &n, &b, &p); ^ user.cpp:55:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &sy); ^ user.cpp: In function ‘void write()’: user.cpp:66:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rest.out", "w", stdout); ^ user.cpp:67:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:70:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %s %s\n", &sa, &sx, &sy); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms284kbOK100
20ms284kbOK10
30ms292kbOK10
424ms452kbOK10
568ms632kbOK10
6328ms1700kbOK10
7328ms1692kbOK10
8Depăşit3296kbTime limit exceeded.0
9Depăşit3300kbTime limit exceeded.0
10Depăşit3304kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?