记录详情

Runtime Error

foo.cc: In member function ‘PolyLinkNode& PolyLinkNode::operator=(PolyLinkNode*)’:
foo.cc:30:24: warning: reference to local variable ‘res’ returned [-Wreturn-local-addr]
   30 |                 return res;
      |                        ^~~
foo.cc:28:30: note: declared here
   28 |                 PolyLinkNode res;
      |                              ^~~
foo.cc: In member function ‘PolyLinkNode& PolyLinkNode::Add(PolyLinkNode&)’:
foo.cc:119:24: warning: reference to local variable ‘res’ returned [-Wreturn-local-addr]
  119 |                 return res;
      |                        ^~~
foo.cc:69:30: note: declared here
   69 |                 PolyLinkNode res;
      |                              ^~~
foo.cc: In member function ‘PolyLinkNode& PolyLinkNode::Mul(PolyLinkNode&)’:
foo.cc:145:24: warning: reference to local variable ‘ans’ returned [-Wreturn-local-addr]
  145 |                 return ans;
      |                        ^~~
foo.cc:135:30: note: declared here
  135 |                 PolyLinkNode ans;
      |                              ^~~
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 536.0 KiB
#2 Runtime Error Segmentation fault 2ms 320.0 KiB
#3 Runtime Error Segmentation fault 2ms 768.0 KiB
#4 Runtime Error Segmentation fault 2ms 536.0 KiB
#5 Runtime Error Segmentation fault 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1037 OO8-2 一元多项式链表类的运算
比赛
2024春 面向对象的程序设计方法(第3场作业赛)
语言
C++
递交时间
2024-05-04 20:19:15
评测时间
2024-05-04 20:19:15
评测机
分数
0
总耗时
13ms
峰值内存
768.0 KiB