Borderou de evaluare (job #2147879)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 1 martie 2018 10:08:12
Problema Figuri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(v); ^ 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:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(v); ^ 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:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(v); ^ 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:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("figuri2.in","r",stdin); ^ user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("figuri2.out","w",stdout); ^ user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:17:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v); ^ /tmp/cccxbiE9.o: In function `main': user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms960kbIncorect0
24ms1020kbIncorect0
38ms1048kbIncorect0
412ms1088kbIncorect0
512ms1096kbIncorect0
616ms1108kbIncorect0
724ms1128kbIncorect0
820ms1140kbIncorect0
928ms1144kbIncorect0
1028ms1140kbIncorect0
Punctaj total0

Ceva nu functioneaza?