Borderou de evaluare (job #2166000)

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

Raport evaluator

Compilare: 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/cc1hkY8O.o: In function `main': user.cpp:(.text.startup+0x49): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2256kbS-a respectat legea!10
24ms2320kbS-a respectat legea!10
34ms2372kbS-a respectat legea!10
44ms2284kbS-a respectat legea!10
54ms2284kbS-a respectat legea!10
64ms2324kbS-a respectat legea!10
74ms2408kbS-a respectat legea!10
84ms2404kbS-a respectat legea!10
94ms2268kbS-a respectat legea!10
104ms2292kbS-a respectat legea!10
Punctaj total100

Ceva nu functioneaza?