/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:44:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   44 |         gets(s);
      |               ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:44:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   44 |         gets(s);
      |               ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:40:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   40 |     scanf("%d%d\n",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:44:13: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   44 |         gets(s);
      |         ~~~~^~~
/usr/bin/ld: /tmp/cczr3uan.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 20ms 8.625 MiB
#2 Accepted 18ms 8.625 MiB
#3 Accepted 38ms 8.75 MiB
#4 Accepted 26ms 8.875 MiB
#5 Accepted 50ms 8.867 MiB
#6 Accepted 49ms 9.0 MiB
#7 Accepted 55ms 9.0 MiB
#8 Accepted 34ms 9.0 MiB
#9 Accepted 32ms 9.125 MiB
#10 Accepted 76ms 9.125 MiB

信息

递交者
类型
递交
题目
P1424 炮兵阵地
语言
C++
递交时间
2022-04-18 19:23:25
评测时间
2022-04-18 20:00:06
评测机
分数
100
总耗时
402ms
峰值内存
9.125 MiB