/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool solve()':
/in/foo.cc:136:3: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(buf); buf_len=strlen(buf);
   ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 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:136:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(buf); buf_len=strlen(buf);
           ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 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:147:3: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(buf); buf_len=strlen(buf);
   ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 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:147:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(buf); buf_len=strlen(buf);
           ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:2:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/tmp/ccCBIKSa.o: In function `solve()':
foo.cc:(.text+0xa4a): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 57ms 24.352 MiB
#2 Accepted 82ms 24.352 MiB
#3 Accepted 10ms 26.355 MiB
#4 Accepted 9ms 26.34 MiB
#5 Accepted 10ms 26.25 MiB
#6 Accepted 50ms 26.617 MiB
#7 Accepted 60ms 28.453 MiB
#8 Accepted 33ms 30.461 MiB
#9 Accepted 137ms 67.98 MiB
#10 Accepted 78ms 51.457 MiB

信息

递交者
类型
递交
题目
P2040 文本校正
语言
C++
递交时间
2018-03-21 20:29:44
评测时间
2018-03-21 20:47:14
评测机
分数
100
总耗时
531ms
峰值内存
67.98 MiB