Borderou de evaluare (job #2147875)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 1 martie 2018 09:59:08
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: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/ccRDokBZ.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
10ms952kbIncorect0
20ms1024kbIncorect0
30ms1048kbIncorect0
40ms1084kbIncorect0
50ms1092kbIncorect0
68ms1112kbIncorect0
712ms1128kbIncorect0
80ms1140kbOK10
98ms1140kbIncorect0
1012ms1144kbIncorect0
Punctaj total10

Ceva nu functioneaza?