Borderou de evaluare (job #1812167)

Utilizator pibogaBogdan piboga Data 21 noiembrie 2016 21:23:43
Problema Bunicu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void gen(int, int&, int&)’: user.cpp:18:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1010]’ [-Wformat=] scanf("%s",&c); ^ user.cpp:25:31: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1010]’ [-Wformat=] printf("%s",&x); ^ user.cpp: In function ‘int main()’: user.cpp:60:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1010]’ [-Wformat=] scanf("%s",&c); ^ user.cpp: In function ‘void gen(int, int&, int&)’: user.cpp:18:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&c); ^ user.cpp: In function ‘int main()’: user.cpp:46:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bunicu.in","r",stdin); ^ user.cpp:47:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bunicu.out","w",stdout); ^ user.cpp:50:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i",&t); ^ user.cpp:55:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i",&n); ^ user.cpp:60:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms292kbBA NUUUU!!!00
24ms292kbBA NUUUU!!!0
34ms296kbBA NUUUU!!!0
412ms288kbBA NUUUU!!!0
532ms292kbBA NUUUU!!!0
Punctaj total0

Ceva nu functioneaza?