/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:45:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(s);
         ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/c++/6/ext/string_conversions.h:43,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:45:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(s);
               ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/c++/6/ext/string_conversions.h:43,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/tmp/ccvzzrKS.o: In function `main':
foo.cc:(.text.startup+0x58): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 10ms 8.84 MiB
#2 Accepted 10ms 8.871 MiB
#3 Wrong Answer 38ms 8.973 MiB
#4 Wrong Answer 21ms 9.039 MiB
#5 Wrong Answer 42ms 9.027 MiB
#6 Wrong Answer 46ms 9.164 MiB
#7 Accepted 66ms 9.125 MiB
#8 Wrong Answer 32ms 9.25 MiB
#9 Wrong Answer 31ms 9.18 MiB
#10 Wrong Answer 69ms 9.227 MiB

信息

递交者
类型
递交
题目
P1424 炮兵阵地
语言
C++
递交时间
2019-07-04 20:55:03
评测时间
2019-07-04 20:55:03
评测机
分数
30
总耗时
369ms
峰值内存
9.25 MiB