foo.cc: In member function 'BigInt BigInt::Mul(int)':
foo.cc:82:19: error: cannot bind non-const lvalue reference of type 'BigInt&' to an rvalue of type 'BigInt'
82 | return Mul(tmp);
| ~~~^~~~~
foo.cc:11:20: note: initializing argument 1 of 'BigInt::BigInt(BigInt&)'
11 | BigInt(BigInt &source) {
| ~~~~~~~~^~~~~~
foo.cc: In function 'int main()':
foo.cc:99:22: error: cannot bind non-const lvalue reference of type 'BigInt&' to an rvalue of type 'BigInt'
99 | BigInt p1 = Power(x1, n1);
| ~~~~~^~~~~~~~
foo.cc:11:20: note: initializing argument 1 of 'BigInt::BigInt(BigInt&)'
11 | BigInt(BigInt &source) {
| ~~~~~~~~^~~~~~
foo.cc:100:22: error: cannot bind non-const lvalue reference of type 'BigInt&' to an rvalue of type 'BigInt'
100 | BigInt p2 = Power(x2, n2);
| ~~~~~^~~~~~~~
foo.cc:11:20: note: initializing argument 1 of 'BigInt::BigInt(BigInt&)'
11 | BigInt(BigInt &source) {
| ~~~~~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务