/ TYWZ /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(b);
  ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:29:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(b);
        ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:30:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);
  ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:30:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);
        ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/tmp/cc01epyd.o: In function `main':
foo.cc:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB
#2 Accepted 1ms 224.0 KiB
#3 Wrong Answer 1ms 224.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Wrong Answer 2ms 872.0 KiB
#6 Wrong Answer 2ms 1.102 MiB
#7 Accepted 20ms 968.0 KiB
#8 Accepted 2ms 1.34 MiB
#9 Wrong Answer 2ms 476.0 KiB
#10 Wrong Answer 2ms 1.254 MiB

信息

递交者
类型
递交
题目
2019.2.13 Problem B - del
比赛
2019.2.13测验
语言
C++
递交时间
2019-02-13 15:29:34
评测时间
2019-02-13 15:29:34
评测机
分数
50
总耗时
38ms
峰值内存
1.34 MiB