记录详情

Compile Error

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

信息

递交者
类型
递交
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 19:23:21
评测时间
2022-08-07 19:23:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes