0_0_39358255_6090.cpp: In constructor 'BigNum::BigNum()':
0_0_39358255_6090.cpp:17:27: error: 'memset' was not declared in this scope
17 | BigNum(){ len = 1;memset(a,0,sizeof(a)); } //构造函数
| ^~~~~~
0_0_39358255_6090.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include<algorithm>
+++ |+#include <cstring>
5 | using namespace std;
0_0_39358255_6090.cpp: In member function 'BigNum& BigNum::operator=(const BigNum&)':
0_0_39358255_6090.cpp:27:9: error: 'memset' was not declared in this scope
27 | memset(a,0,sizeof(a));
| ^~~~~~
0_0_39358255_6090.cpp:27:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39358255_6090.cpp: In function 'int main()':
0_0_39358255_6090.cpp:69:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
69 | que[0]=1;
| ^
0_0_39358255_6090.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ^~~~~~
0_0_39358255_6090.cpp:23:43: note: no known conversion for argument 1 from 'int' to 'const BigNum&'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ~~~~~~~~~~~~~~~^
0_0_39358255_6090.cpp:70:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
70 | que[1]=1;
| ^
0_0_39358255_6090.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ^~~~~~
0_0_39358255_6090.cpp:23:43: note: no known conversion for argument 1 from 'int' to 'const BigNum&'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ~~~~~~~~~~~~~~~^
0_0_39358255_6090.cpp:71:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
71 | que[2]=2;
| ^
0_0_39358255_6090.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ^~~~~~
0_0_39358255_6090.cpp:23:43: note: no known conversion for argument 1 from 'int' to 'const BigNum&'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ~~~~~~~~~~~~~~~^
0_0_39358255_6090.cpp:72:16: error: no match for 'operator=' (operand types are 'BigNum' and 'int')
72 | que[3]=4;
| ^
0_0_39358255_6090.cpp:23:10: note: candidate: 'BigNum& BigNum::operator=(const BigNum&)'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ^~~~~~
0_0_39358255_6090.cpp:23:43: note: no known conversion for argument 1 from 'int' to 'const BigNum&'
23 | BigNum & BigNum::operator=(const BigNum & n) //重载赋值运算符,大数之间进行赋值运算
| ~~~~~~~~~~~~~~~^
|