Borderou de evaluare (job #2151298)

Utilizator BahamutLux Arcadia Bahamut Data 4 martie 2018 12:36:30
Problema PScPld Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(ss); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:23:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(ss); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:23:12: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(ss); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:17:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pscpld.in", "r", stdin); ^ user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pscpld.out", "w", stdout); ^ user.cpp:23:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(ss); ^ /tmp/ccmfaXnS.o: In function `main': user.cpp:(.text.startup+0x49): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms2728kbOK10
232ms2828kbOK10
384ms2908kbOK10
4Depăşit4160kbTime limit exceeded.0
5Depăşit2880kbTime limit exceeded.0
6Depăşit3072kbTime limit exceeded.0
7Depăşit3168kbTime limit exceeded.0
8Depăşit3416kbTime limit exceeded.0
9Depăşit3840kbTime limit exceeded.0
10Depăşit4116kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?