Borderou de evaluare (job #2123747)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 6 februarie 2018 16:30:22
Problema Mesaje Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:29:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a); ^ 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:29:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a); ^ 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:29:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a); ^ 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:40:29: warning: operation on ‘n’ may be undefined [-Wsequence-point] word[n].id = n++; ^ user.cpp:45:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a); ^ 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:45:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a); ^ 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:45:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
Test Timp executie Memorie folosita Mesaj Punctaj/test
152ms1996kbRaspuns partial corect4
20ms1332kbCorect10
30ms1336kbRaspuns partial corect4
40ms1332kbRaspuns partial corect4
50ms1332kbCorect10
60ms1332kbRaspuns partial corect4
74ms1348kbRaspuns partial corect4
864ms1716kbCorect10
94ms1396kbCorect10
108ms1392kbCorect10
Punctaj total70

Ceva nu functioneaza?