记录详情

Compile Error

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

信息

递交者
类型
自测
题目
P1023 OO6-1 高精度整数类的乘法运算
语言
C++
递交时间
2022-05-12 13:18:43
评测时间
2022-05-12 13:18:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes