记录详情

Compile Error

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

信息

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