记录详情

Compile Error

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

信息

递交者
类型
递交
题目
A11-4 高精度整数之间的乘法
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 19:12:04
评测时间
2022-08-07 19:12:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes