/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:43:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(g[i]+1);
         ^~~~
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:43:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(g[i]+1);
                    ^
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/ccBS4IxX.o: In function `main':
foo.cc:(.text.startup+0x5e): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 4ms 2.434 MiB
#2 Accepted 3ms 2.352 MiB
#3 Accepted 7ms 3.363 MiB
#4 Accepted 5ms 2.676 MiB
#5 Accepted 3ms 2.371 MiB

信息

递交者
类型
递交
题目
P1107 环游大同80天
语言
C++
递交时间
2021-12-24 19:31:31
评测时间
2021-12-24 19:31:31
评测机
分数
100
总耗时
24ms
峰值内存
3.363 MiB