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)提供评测服务