记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:63:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s);len=strlen(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:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:63:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s);len=strlen(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:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:67:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(t);lt[i]=strlen(t);
         ^~~~
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:67:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(t);lt[i]=strlen(t);
               ^
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/ccuvOqCv.o: In function `main':
foo.cc:(.text.startup+0x12): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 4ms 2.352 MiB
#2 Accepted 15ms 2.363 MiB
#3 Accepted 6ms 4.25 MiB
#4 Accepted 11ms 4.469 MiB
#5 Accepted 27ms 10.461 MiB
#6 Accepted 26ms 12.5 MiB
#7 Accepted 9ms 3.332 MiB
#8 Accepted 22ms 9.5 MiB
#9 Accepted 22ms 12.637 MiB
#10 Accepted 16ms 9.625 MiB
#11 Accepted 11ms 9.102 MiB
#12 Accepted 18ms 8.98 MiB
#13 Accepted 15ms 6.965 MiB
#14 Accepted 11ms 8.965 MiB
#15 Accepted 11ms 9.109 MiB

信息

递交者
类型
递交
题目
Censoring
题目数据
下载
语言
C++
递交时间
2018-08-04 14:27:13
评测时间
2018-08-04 14:27:13
评测机
分数
150
总耗时
230ms
峰值内存
12.637 MiB