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