Borderou de evaluare (job #2256481)

Utilizator savulescustefanSavulescu Stefan savulescustefan Data 8 octombrie 2018 18:28:34
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:74:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[304]’ [-Wformat=] scanf ("%s", &s); ^ user.cpp:85:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[304]’ [-Wformat=] scanf ("%s", &s); ^ user.cpp:98:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[304]’ [-Wformat=] scanf ("%s", &s); ^ user.cpp:70:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sub.in","r",stdin); ^ user.cpp:71:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sub.out","w",stdout); ^ user.cpp:72:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^ user.cpp:73:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%c", &x); ^ user.cpp:74:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", &s); ^ user.cpp:85:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", &s); ^ user.cpp:94:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &m); ^ user.cpp:95:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%c", &x); ^ user.cpp:98:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", &s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms804kbOK10
20ms804kbOK10
30ms860kbOK10
40ms1292kbOK10
54ms1992kbOK10
64ms2096kbOK10
716ms5840kbOK10
816ms5924kbOK10
920ms5968kbOK10
1016ms5752kbOK10
Punctaj total100

Ceva nu functioneaza?