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)提供评测服务