Borderou de evaluare (job #2173686)

Utilizator andru47Stefanescu Andru andru47 Data 15 martie 2018 23:34:39
Problema Lant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:73:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:73:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:73:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:91:35: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null] memset(s , NULL, sizeof(s)); ^ user.cpp:92:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:92:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:92:19: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2936kbOK10
24ms2868kbOK10
34ms2980kbOK10
44ms2956kbOK10
54ms3004kbOK10
64ms2956kbOK10
74ms2884kbOK10
812ms2948kbOK10
94ms2892kbOK10
108ms3096kbOK10
Punctaj total100

Ceva nu functioneaza?