Borderou de evaluare (job #2165975)

Utilizator mirupetPetcan Miruna mirupet Data 13 martie 2018 14:46:14
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘bool getNumber(int)’: user.cpp:63:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:71: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:71: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:71: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:67:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &N, &M); ^ user.cpp:71:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S); ^ /tmp/ccsO7HaA.o: In function `main': user.cpp:(.text.startup+0x52): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2420kbIncorect!0
24ms2344kbIncorect!0
34ms2372kbIncorect!0
44ms2268kbIncorect!0
54ms2368kbIncorect!0
64ms2364kbIncorect!0
74ms2356kbIncorect!0
84ms2448kbIncorect!0
94ms2360kbIncorect!0
104ms2360kbIncorect!0
Punctaj total0

Ceva nu functioneaza?