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);
      |              ^~
  信息
- 递交者
 - 类型
 - 递交
 - 题目
 - P1027 OO7-2 把链表对象包装成数组
 - 比赛
 - 2024级《面向对象的方法与实践》第三次作业
 - 语言
 - C++
 - 递交时间
 - 2025-03-29 11:52:41
 - 评测时间
 - 2025-03-29 11:52:41
 - 评测机
 
- 分数
 - 40
 - 总耗时
 - 10ms
 - 峰值内存
 - 536.0 KiB