记录详情

Runtime Error

In member function 'void LinkList::Clear()',
    inlined from 'void LinkList::Copy(const LinkList&)' at /in/foo.cc:16:14,
    inlined from 'LinkList::LinkList(const LinkList&)' at /in/foo.cc:29:13,
    inlined from 'int main()' at /in/foo.cc:94:19:
/in/foo.cc:36:16: warning: 'L2.LinkList::head' may be used uninitialized [-Wmaybe-uninitialized]
   36 |         while (head != NULL)
      |                ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:94:14: note: 'L2' declared here
   94 |     LinkList L2(L1);
      |              ^~
# 状态 耗时 内存占用
#1 Accepted 2ms 476.0 KiB
#2 Runtime Error 1ms 536.0 KiB
#3 Runtime Error 1ms 536.0 KiB
#4 Accepted 2ms 492.0 KiB
#5 Runtime Error 2ms 524.0 KiB

信息

递交者
类型
递交
题目
P1027 OO7-2 把链表对象包装成数组
比赛
2024级《面向对象的方法与实践》第三次作业
语言
C++
递交时间
1 周前
评测时间
1 周前
评测机
分数
40
总耗时
10ms
峰值内存
536.0 KiB