记录详情

Runtime Error

/in/foo.cc: In member function 'int LinkList::operator[](int)':
/in/foo.cc:106:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:47:37: warning: 'L2.LinkList::head' may be used uninitialized in this function [-Wmaybe-uninitialized]
   for (Node* p = head; p != NULL; p = p->next)
                                   ~~^~~~~~~~~
/in/foo.cc:121:11: note: 'L2.LinkList::head' was declared here
  LinkList L2(L1);
           ^~
/in/foo.cc:77:15: warning: 'L2.LinkList::tail' may be used uninitialized in this function [-Wmaybe-uninitialized]
    tail->next = newp;
    ~~~~~~~~~~~^~~~~~
/in/foo.cc:121:11: note: 'L2.LinkList::tail' was declared here
  LinkList L2(L1);
           ^~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 420.0 KiB
#2 Runtime Error 1ms 416.0 KiB
#3 Runtime Error 2ms 360.0 KiB
#4 Runtime Error 1ms 424.0 KiB
#5 Runtime Error 1ms 452.0 KiB

信息

递交者
类型
递交
题目
P1027 OO7-2 把链表对象包装成数组
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-05 18:13:04
评测时间
2024-04-05 18:13:04
评测机
分数
0
总耗时
9ms
峰值内存
452.0 KiB