Borderou de evaluare (job #1359414)

Utilizator radudurlesteanuDurlesteanu Radu Stefan radudurlesteanu Data 24 februarie 2015 22:32:39
Problema Bifo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:37:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100]’ [-Wformat=] scanf("%s%c",&s1,&ch); ^ user.cpp:38:15: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100]’ [-Wformat=] scanf("%s",&s2); ^ user.cpp:53:14: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:56:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[101]’ [-Wformat=] scanf("%s",&sir); ^ user.cpp:35:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bifo.in","r",stdin); ^ user.cpp:36:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bifo.out","w",stdout); ^ user.cpp:37:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s%c",&s1,&ch); ^ user.cpp:38:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s2); ^ user.cpp:53:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:56:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&sir); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit1412kbTime limit exceeded.0
20ms1420kbKilled by signal 11(SIGSEGV).0
3Depăşit1412kbTime limit exceeded.0
4Depăşit1408kbTime limit exceeded.0
5Depăşit1408kbTime limit exceeded.0
6Depăşit1404kbTime limit exceeded.0
7Depăşit1404kbTime limit exceeded.0
80ms1420kbKilled by signal 11(SIGSEGV).0
90ms1416kbKilled by signal 11(SIGSEGV).0
100ms1424kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?