/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:46:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   46 |         gets(s);
      |         ~~~~^~~
In file included from /usr/include/c++/12/cstdio:42,
                 from /in/foo.cc:4:
/usr/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/usr/bin/ld: /tmp/cceQEw9h.o: in function `main':
foo.cc:(.text.startup+0x54): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 7ms 8.879 MiB
#2 Accepted 9ms 8.883 MiB
#3 Accepted 22ms 8.973 MiB
#4 Accepted 20ms 9.055 MiB
#5 Accepted 29ms 9.016 MiB
#6 Accepted 41ms 9.176 MiB
#7 Accepted 38ms 9.172 MiB
#8 Accepted 31ms 9.246 MiB
#9 Accepted 28ms 9.238 MiB
#10 Accepted 61ms 9.254 MiB

信息

递交者
类型
递交
题目
P1424 炮兵阵地
语言
C++
递交时间
2025-12-23 23:30:41
评测时间
2025-12-23 23:30:42
评测机
分数
100
总耗时
292ms
峰值内存
9.254 MiB