/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:23:5: error: 'memset' was not declared in this scope
   23 |     memset(f,1,sizeof(f));
      |     ^~~~~~
foo.cc:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | #define ll long long
foo.cc:22:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |     scanf("%d%d%d%d",&n,&m,&row,&col);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2022-08-09 20:34:34
评测时间
2022-08-09 20:34:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes