Borderou de evaluare (job #2178275)

Utilizator delia_99Delia Draghici delia_99 Data 19 martie 2018 12:19:22
Problema Kss Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:76:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:76:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:76:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:69:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kss.in","r",stdin); ^ user.cpp:70:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kss.out","w",stdout); ^ user.cpp:72:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:75:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %lld\n",&n,&k); ^ user.cpp:76:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cc0j1V96.o: In function `main': user.cpp:(.text.startup+0x8f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1448kbIncorect0
20ms1276kbIncorect0
30ms1260kbKilled by signal 11(SIGSEGV).0
40ms1260kbKilled by signal 11(SIGSEGV).0
50ms1264kbKilled by signal 11(SIGSEGV).0
60ms1160kbKilled by signal 11(SIGSEGV).0
70ms1184kbKilled by signal 11(SIGSEGV).0
80ms1220kbKilled by signal 11(SIGSEGV).0
90ms1296kbKilled by signal 11(SIGSEGV).0
100ms1224kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?