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 constructor 'BigInt::BigInt(char*)':
foo.cc:68:31: error: 'strlen' was not declared in this scope
68 | int nLength = strlen(strBigInt);
| ^~~~~~
foo.cc:6:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
5 | #include <iostream>
+++ |+#include <cstring>
6 | using namespace std;
foo.cc: In static member function 'static BigInt BigInt::StringToBigInt(char*)':
foo.cc:404:31: error: 'strlen' was not declared in this scope
404 | int nLength = strlen(strBigInt);
| ^~~~~~
foo.cc:404:31: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务