Borderou de evaluare (job #1484743)

Utilizator akaprosAna Kapros akapros Data 11 septembrie 2015 19:35:06
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
20ms288kbOK10
30ms296kbOK10
420ms448kbOK10
552ms640kbOK10
6264ms1700kbOK10
7256ms1692kbIncorect0
8Depăşit3296kbTime limit exceeded.0
9692ms3300kbOK10
10700ms3296kbIncorect0
Punctaj total0

Ceva nu functioneaza?