记录详情

Compile Error

foo.cc: In member function 'void PolyList::Add(PolyList)':
foo.cc:79:14: error: 'L' was not declared in this scope
   79 |   for(Poly*p=L.Head; p!=NULL;p=p->next)
      |              ^
foo.cc:82:29: warning: statement has no effect [-Wunused-value]
   82 |    newp->coef=p->coef;newp->index;
      |                       ~~~~~~^~~~~
foo.cc: In function 'int main()':
foo.cc:97:5: error: request for member 'Add' in 'L1', which is of non-class type 'PolyList()'
   97 |  L1.Add(L2);
      |     ^~~
foo.cc:98:5: error: request for member 'Output' in 'L1', which is of non-class type 'PolyList()'
   98 |  L1.Output();
      |     ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
DS1-1 一元多项式的运算
语言
C++
递交时间
2021-12-26 15:38:08
评测时间
2021-12-26 15:38:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes