记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1025 OO6-3 高精度整数集合类的插入排序
语言
C++
递交时间
2023-10-14 05:13:43
评测时间
2023-10-14 05:13:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes