记录详情

Accepted

foo.cc: In constructor 'BigInt::BigInt(int)':
foo.cc:29:93: warning: variable 'ptrPriorNode' set but not used [-Wunused-but-set-variable]
   29 |                 DigitNode *ptrHeadNode = NULL, *ptrNewNode = NULL, *ptrCurrentNode = NULL, *ptrPriorNode = NULL;
      |                                                                                             ^~~~~~~~~~~~
foo.cc: In member function 'BigInt BigInt::IntegerToBigInt(int)':
foo.cc:321:93: warning: variable 'ptrPriorNode' set but not used [-Wunused-but-set-variable]
  321 |                 DigitNode *ptrHeadNode = NULL, *ptrNewNode = NULL, *ptrCurrentNode = NULL, *ptrPriorNode = NULL;
      |                                                                                             ^~~~~~~~~~~~
In member function 'void BigInt::operator=(BigInt)',
    inlined from 'BigInt operator+(BigInt, BigInt)' at foo.cc:165:16:
foo.cc:109:30: warning: 'void operator delete(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  109 |                 delete this->digitHead;
      |                              ^~~~~~~~~
In constructor 'BigInt::BigInt()',
    inlined from 'BigInt operator+(BigInt, BigInt)' at foo.cc:160:21:
foo.cc:22:44: note: returned from 'void* operator new [](std::size_t)'
   22 |                 this->digitHead = new int[1];
      |                                            ^
In member function 'void BigInt::operator=(BigInt)',
    inlined from 'BigInt operator+(BigInt, BigInt)' at foo.cc:170:16:
foo.cc:109:30: warning: 'void operator delete(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  109 |                 delete this->digitHead;
      |                              ^~~~~~~~~
In constructor 'BigInt::BigInt()',
    inlined from 'BigInt operator+(BigInt, BigInt)' at foo.cc:160:21:
foo.cc:22:44: note: returned from 'void* operator new [](std::size_t)'
   22 |                 this->digitHead = new int[1];
      |                                            ^
In member function 'void BigInt::operator=(BigInt)',
    inlined from 'BigInt operator-(BigInt, BigInt)' at foo.cc:252:16:
foo.cc:109:30: warning: 'void operator delete(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  109 |                 delete this->digitHead;
      |                              ^~~~~~~~~
In constructor 'BigInt::BigInt()',
    inlined from 'BigInt operator-(BigInt, BigInt)' at foo.cc:247:21:
foo.cc:22:44: note: returned from 'void* operator new [](std::size_t)'
   22 |                 this->digitHead = new int[1];
      |                                            ^
In member function 'void BigInt::operator=(BigInt)',
    inlined from 'BigInt operator-(BigInt, BigInt)' at foo.cc:257:16:
foo.cc:109:30: warning: 'void operator delete(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  109 |                 delete this->digitHead;
      |                              ^~~~~~~~~
In constructor 'BigInt::BigInt()',
    inlined from 'BigInt operator-(BigInt, BigInt)' at foo.cc:247:21:
foo.cc:22:44: note: returned from 'void* operator new [](std::size_t)'
   22 |                 this->digitHead = new int[1];
      |                                            ^
In member function 'void BigInt::operator=(BigInt)',
    inlined from 'BigInt operator*(BigInt, BigInt)' at foo.cc:358:15,
    inlined from 'static BigInt BigInt::BigPow(BigInt, BigInt)' at foo.cc:384:27:
foo.cc:109:30: warning: 'void operator delete(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  109 |                 delete this->digitHead;
      |                              ^~~~~~~~~
In constructor 'BigInt::BigInt()',
    inlined from 'BigInt operator*(BigInt, BigInt)' at foo.cc:357:33,
    inlined from 'static BigInt BigInt::BigPow(BigInt, BigInt)' at foo.cc:384:27:
foo.cc:22:44: note: returned from 'void* operator new [](std::size_t)'
   22 |                 this->digitHead = new int[1];
      |                                            ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 5ms 412.0 KiB
#3 Accepted 5ms 796.0 KiB
#4 Accepted 33ms 7.098 MiB
#5 Accepted 8ms 1.402 MiB

信息

递交者
类型
递交
题目
P1024 OO6-2 高精度整数类的加法运算
语言
C++
递交时间
2023-10-14 02:55:26
评测时间
2023-10-14 02:55:26
评测机
分数
100
总耗时
57ms
峰值内存
7.098 MiB