记录详情

Compile Error

foo.cc: In member function ‘int PolyListArray::Sum()’:
foo.cc:78:34: error: cannot bind non-const lvalue reference of type ‘PolyList&’ to an rvalue of type ‘PolyList’
   78 |                         tem=(tem + p[i]);
      |                             ~~~~~^~~~~~~
foo.cc:30:39: note:   initializing argument 1 of ‘PolyList PolyList::operator=(PolyList&)’
   30 |         PolyList operator = (PolyList&p)
      |                              ~~~~~~~~~^

信息

递交者
类型
自测
题目
P1021 OO5-1 一元多项式类的求值
语言
C++
递交时间
2024-04-05 16:36:13
评测时间
2024-04-05 16:36:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes