Borderou de evaluare (job #2159941)

Utilizator oso.andinoooIonut Stan oso.andinooo Data 11 martie 2018 11:08:30
Problema Smooth2 Status done
Runda Algoritmiada 2018 Runda PreOJI Compilator cpp | Vezi sursa
Scor 3

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:11:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:11:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ 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:8:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("smooth2.in", "r", stdin); ^ user.cpp:9:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("smooth2.out", "w", stdout); ^ user.cpp:11:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccSDd1D3.o: In function `main': user.cpp:(.text.startup+0x48): warning: the `gets' function is dangerous and should not be used.
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms2644kbOK!00
24ms2800kbOK!00
34ms2716kbRaspuns gresit!00
44ms2760kbRaspuns gresit!00
54ms2716kbOK!33
64ms2892kbRaspuns gresit!00
74ms2904kbRaspuns gresit!00
84ms2872kbRaspuns gresit!00
94ms2884kbRaspuns gresit!00
104ms2768kbRaspuns gresit!00
114ms2920kbRaspuns gresit!00
124ms2744kbRaspuns gresit!00
134ms2936kbRaspuns gresit!0
144ms2896kbRaspuns gresit!0
154ms3020kbRaspuns gresit!0
164ms2760kbRaspuns gresit!0
174ms3000kbRaspuns gresit!0
184ms2860kbRaspuns gresit!00
194ms2860kbRaspuns gresit!0
204ms3000kbRaspuns gresit!0
Punctaj total3

Ceva nu functioneaza?