Borderou de evaluare (job #2169877)

Utilizator savulescustefanSavulescu Stefan savulescustefan Data 14 martie 2018 18:38:29
Problema Magic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:5: 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:10:5: 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:10:11: 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:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("text2.in","r",stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("text2.out","w",stdout); ^ user.cpp:10:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^ /tmp/ccTIvN8J.o: In function `main': user.cpp:(.text.startup+0x4e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1220kbKilled by signal 11(SIGSEGV).0
20ms1104kbKilled by signal 11(SIGSEGV).0
30ms1184kbKilled by signal 11(SIGSEGV).0
40ms1176kbKilled by signal 11(SIGSEGV).0
50ms1188kbKilled by signal 11(SIGSEGV).0
60ms1184kbKilled by signal 11(SIGSEGV).0
70ms1100kbKilled by signal 11(SIGSEGV).0
80ms1192kbKilled by signal 11(SIGSEGV).0
90ms1116kbKilled by signal 11(SIGSEGV).0
100ms1184kbKilled by signal 11(SIGSEGV).0
110ms1184kbKilled by signal 11(SIGSEGV).0
120ms1108kbKilled by signal 11(SIGSEGV).0
130ms1228kbKilled by signal 11(SIGSEGV).0
140ms1116kbKilled by signal 11(SIGSEGV).0
150ms1192kbKilled by signal 11(SIGSEGV).0
160ms1144kbKilled by signal 11(SIGSEGV).0
170ms1216kbKilled by signal 11(SIGSEGV).0
180ms1192kbKilled by signal 11(SIGSEGV).0
190ms1220kbKilled by signal 11(SIGSEGV).0
200ms1116kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?