/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:71:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(tmp);
           ^
In file included from /usr/include/c++/7/cstdio:42:0,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6159,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/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:75:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(t[i]);
             ^
In file included from /usr/include/c++/7/cstdio:42:0,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6159,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/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:80:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(s[i]);
             ^
In file included from /usr/include/c++/7/cstdio:42:0,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6159,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/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:89:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(tmp);
           ^
In file included from /usr/include/c++/7/cstdio:42:0,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6159,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/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:93:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(s[i]);
             ^
In file included from /usr/include/c++/7/cstdio:42:0,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6159,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/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:98:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(t[i]);
             ^
In file included from /usr/include/c++/7/cstdio:42:0,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6159,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/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/ccN9tMJM.o: In function `main':
foo.cc:(.text.startup+0xa4): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 6ms 8.434 MiB
#2 Accepted 4ms 10.441 MiB
#3 Accepted 6ms 14.938 MiB
#4 Accepted 9ms 14.812 MiB
#5 Accepted 6ms 16.938 MiB
#6 Accepted 7ms 16.93 MiB
#7 Accepted 9ms 20.812 MiB
#8 Accepted 7ms 16.938 MiB
#9 Accepted 8ms 20.809 MiB
#10 Accepted 7ms 18.812 MiB
#11 Accepted 6ms 18.809 MiB
#12 Accepted 6ms 16.809 MiB
#13 Accepted 25ms 28.438 MiB
#14 Accepted 22ms 24.312 MiB
#15 Accepted 19ms 28.312 MiB
#16 Accepted 15ms 22.309 MiB
#17 Accepted 66ms 38.816 MiB
#18 Accepted 178ms 28.941 MiB
#19 Accepted 18ms 24.312 MiB
#20 Accepted 21ms 26.438 MiB

信息

递交者
类型
递交
题目
P1960 双旋转字符串
语言
C++
递交时间
2017-09-15 20:43:51
评测时间
2017-09-15 20:43:51
评测机
分数
100
总耗时
453ms
峰值内存
38.816 MiB