/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:46:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   46 |         gets(s);
      |               ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from foo.cc:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:46:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   46 |         gets(s);
      |               ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from foo.cc:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   42 |     scanf("%d%d\n",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:46:13: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   46 |         gets(s);
      |         ~~~~^~~
/usr/bin/ld: /tmp/ccFqKHAS.o: in function `main':
foo.cc:(.text.startup+0x6f): warning: the `gets' function is dangerous and should not be used.
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 11ms 8.75 MiB
#2 Accepted 14ms 8.75 MiB
#3 Accepted 41ms 8.75 MiB
#4 Accepted 34ms 8.875 MiB
#5 Accepted 50ms 8.875 MiB
#6 Accepted 59ms 9.0 MiB
#7 Accepted 46ms 9.0 MiB
#8 Accepted 31ms 9.125 MiB
#9 Accepted 37ms 9.125 MiB
#10 Accepted 73ms 9.125 MiB

信息

递交者
类型
递交
题目
P1424 炮兵阵地
语言
C++
递交时间
2021-12-16 19:44:15
评测时间
2021-12-16 19:44:15
评测机
分数
100
总耗时
401ms
峰值内存
9.125 MiB