记录详情

Compile Error

foo.cc: In member function ‘BigInt BigInt::operator+(const BigInt&) const’:
foo.cc:31:1: error: expected primary-expression before ‘|’ token
   31 | | j >= 0 |
      | ^
foo.cc:32:1: error: expected primary-expression before ‘|’ token
   32 | | carry != 0) {
      | ^
foo.cc: In function ‘int main()’:
foo.cc:65:21: error: no match for ‘operator*’ (operand types are ‘BigInt’ and ‘BigInt’)
   65 |         num1 = num1 * BigInt(x1);
      |                ~~~~ ^ ~~~~~~~~~~
      |                |      |
      |                BigInt BigInt
foo.cc:70:21: error: no match for ‘operator*’ (operand types are ‘BigInt’ and ‘BigInt’)
   70 |         num2 = num2 * BigInt(x2);
      |                ~~~~ ^ ~~~~~~~~~~
      |                |      |
      |                BigInt BigInt

信息

递交者
类型
自测
题目
P1024 OO6-2 高精度整数类的加法运算
语言
C++
递交时间
2024-05-05 10:41:02
评测时间
2024-05-05 10:41:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes