记录详情

Accepted

/in/foo.cc: In function 'void operator+=(int&, Node&)':
/in/foo.cc:48:7: warning: unused variable 'nResult' [-Wunused-variable]
   int nResult = 0;
       ^~~~~~~
/in/foo.cc: In function 'int main(int, char**)':
/in/foo.cc:258:18: warning: unused variable 'nResult' [-Wunused-variable]
  int nCount = 6, nResult = 1;
                  ^~~~~~~
/in/foo.cc:269:11: warning: 'L1.LinkList::headNode' may be used uninitialized in this function [-Wmaybe-uninitialized]
  LinkList L1(ary_nInstance, nCount);
           ^~
/in/foo.cc:137:11: warning: 'ptrCurrentNode' may be used uninitialized in this function [-Wmaybe-uninitialized]
    delete ptrCurrentNode;
           ^~~~~~~~~~~~~~
/in/foo.cc:132:9: note: 'ptrCurrentNode' was declared here
   Node *ptrCurrentNode = NULL, *ptrNewNode = NULL, *ptrPriorNode = NULL;
         ^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 340.0 KiB
#2 Accepted 1ms 336.0 KiB
#3 Accepted 1ms 312.0 KiB
#4 Accepted 1ms 364.0 KiB
#5 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1027 OO7-2 把链表对象包装成数组
语言
C++
递交时间
2023-10-15 07:41:51
评测时间
2023-10-15 07:41:51
评测机
分数
100
总耗时
7ms
峰值内存
364.0 KiB