记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);gets(b);
  ^~~~
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:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:10:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);gets(b);
        ^
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:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:10:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);gets(b);
          ^~~~
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:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:10:16: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);gets(b);
                ^
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:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/tmp/cc9b1XMC.o: In function `main':
foo.cc:(.text.startup+0x16): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Runtime Error 2ms 376.0 KiB
#2 Runtime Error 2ms 380.0 KiB
#3 Runtime Error 2ms 500.0 KiB
#4 Runtime Error 3ms 340.0 KiB
#5 Runtime Error 2ms 384.0 KiB
#6 Runtime Error 4ms 372.0 KiB
#7 Runtime Error 2ms 204.0 KiB
#8 Runtime Error 4ms 348.0 KiB
#9 Runtime Error 3ms 256.0 KiB
#10 Runtime Error 4ms 348.0 KiB
#11 Runtime Error 2ms 368.0 KiB
#12 Runtime Error 3ms 272.0 KiB
#13 Runtime Error 2ms 368.0 KiB
#14 Runtime Error 2ms 256.0 KiB
#15 Runtime Error 2ms 204.0 KiB
#16 Runtime Error 2ms 384.0 KiB
#17 Runtime Error 4ms 384.0 KiB
#18 Runtime Error 2ms 340.0 KiB
#19 Runtime Error 2ms 384.0 KiB
#20 Runtime Error 2ms 384.0 KiB
#21 Runtime Error 2ms 368.0 KiB
#22 Runtime Error 2ms 368.0 KiB
#23 Runtime Error 1ms 384.0 KiB
#24 Runtime Error 2ms 208.0 KiB
#25 Runtime Error 3ms 368.0 KiB

信息

递交者
类型
递交
题目
字符串匹配
语言
C++
递交时间
2018-08-25 20:47:25
评测时间
2018-08-25 20:47:25
评测机
分数
0
总耗时
73ms
峰值内存
500.0 KiB