Compile Error
/in/foo.cc: In member function 'int PolyListArray::Sum()':
/in/foo.cc:78:13: error: invalid initialization of non-const reference of type 'PolyList&' from an rvalue of type 'PolyList'
tem=(tem + p[i]);
~~~~~^~~~~~~
/in/foo.cc:30:11: note: initializing argument 1 of 'PolyList PolyList::operator=(PolyList&)'
PolyList operator = (PolyList&p)
^~~~~~~~
信息
- 递交者
- 类型
- 自测
- 题目
- P1021 OO5-1 一元多项式类的求值
- 语言
- C++
- 递交时间
- 2024-04-05 16:34:56
- 评测时间
- 2024-04-05 16:34:56
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes