foo.cc: In function 'void char_to_int(std::string, int*)':
foo.cc:15:5: error: 'memset' was not declared in this scope
15 | memset(x, 0, MAX_LEN + 20);
| ^~~~~~
foo.cc:3:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include<iostream>
+++ |+#include <cstring>
3 | #define MAX_LEN 10000
foo.cc: In function 'void big_int_mul(const int*, const int*, int*)':
foo.cc:28:5: error: 'memset' was not declared in this scope
28 | memset(z, 0, MAX_LEN * 2 + 20);
| ^~~~~~
foo.cc:28:5: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
foo.cc: In function 'int main()':
foo.cc:74:5: error: 'memset' was not declared in this scope
74 | memset(tmp, 0, MAX_LEN * 2 + 20);
| ^~~~~~
foo.cc:74:5: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
[Hydro](https://hydro.ac)提供评测服务