/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:45:2: error: 'memset' was not declared in this scope
   45 |  memset(map, -1, sizeof(map));
      |  ^~~~~~
foo.cc:6:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    5 | #include<queue>
  +++ |+#include <cstring>
    6 | using namespace std;
foo.cc:46:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   46 |  scanf("%d\n%d\n", &n,&m);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:49:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   49 |   scanf("%d %d %s\n", &q[i].x, &q[i].y, q[i].s);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1112 小胖的奇偶
语言
C++
递交时间
2022-06-05 17:35:41
评测时间
2022-06-05 17:35:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes