/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void solve()':
foo.cc:11:17: error: 'memset' was not declared in this scope
   11 |                 memset(val, 0, sizeof val);
      |                 ^~~~~~
foo.cc:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
foo.cc:22:17: error: 'memset' was not declared in this scope
   22 |                 memset(val, 0, sizeof val);
      |                 ^~~~~~
foo.cc:22:17: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
foo.cc:34:25: error: 'memset' was not declared in this scope
   34 |                         memset(val, 0, sizeof val);
      |                         ^~~~~~
foo.cc:34:25: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1335 数独验证
语言
C++
递交时间
2023-06-09 21:33:53
评测时间
2023-06-09 21:33:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes