Borderou de evaluare (job #2147815)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16: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:16: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:16: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:10: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:11: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:13:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:16:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v); ^ /tmp/ccJP9fdX.o: In function `main': user.cpp:(.text.startup+0x77): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1060kbIncorect0
20ms1176kbIncorect0
30ms1228kbIncorect0
40ms1288kbIncorect0
50ms1308kbIncorect0
64ms1328kbIncorect0
78ms1356kbIncorect0
80ms1392kbOK10
94ms1392kbIncorect0
108ms1392kbIncorect0
Punctaj total10

Ceva nu functioneaza?