Compile Error
foo.cc: In constructor 'PolyList::PolyList(int)': foo.cc:32:23: warning: unused variable 'tail' [-Wunused-variable] 32 | Node *tail=NULL; | ^~~~ foo.cc: In member function 'void PolyList::Insert(Node*)': foo.cc:47:20: error: 'p' was not declared in this scope 47 | if(p!=NULL && p->data.index==newp->data.index ) | ^ foo.cc:57:40: error: type '<type error>' argument given to 'delete', expected pointer 57 | delete p; | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 自测
- 题目
- DS1-1 一元多项式的运算
- 语言
- C++
- 递交时间
- 2022-10-08 19:23:28
- 评测时间
- 2022-10-08 19:23:28
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes