Borderou de evaluare (job #1461409)

Utilizator mariakKapros Maria mariak Data 15 iulie 2015 17:18:06
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:81:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[260]’ [-Wformat=] scanf("%s\n", &s1); ^ user.cpp:82:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[260]’ [-Wformat=] scanf("%s\n", &s2); ^ user.cpp:71:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logic.in", "r", stdin); ^ user.cpp:72:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logic.out","w", stdout); ^ user.cpp:73:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:81:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &s1); ^ user.cpp:82:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &s2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms256kbOK10
30ms256kbIncorect0
40ms260kbIncorect0
524ms252kbIncorect0
64ms260kbIncorect0
70ms256kbIncorect0
80ms256kbIncorect0
90ms260kbIncorect0
100ms256kbIncorect0
Punctaj total20

Ceva nu functioneaza?