记录详情

Compile Error

foo.cc: In member function 'polylist polylist::operator*(polylist&)':
foo.cc:124:61: error: 'struct poly' has no member named 'index'
  124 |                                         int ansex=it1->data.index*it2->data.index;
      |                                                             ^~~~~
foo.cc:124:77: error: 'struct poly' has no member named 'index'
  124 |                                         int ansex=it1->data.index*it2->data.index;
      |                                                                             ^~~~~
foo.cc:125:51: error: 'it' was not declared in this scope; did you mean 'int'?
  125 |                                         int ansbs=it->data.base*it2->data.base;
      |                                                   ^~
      |                                                   int
foo.cc:125:75: error: 'struct poly' has no member named 'base'
  125 |                                         int ansbs=it->data.base*it2->data.base;
      |                                                                           ^~~~
foo.cc:127:46: error: 'class polylist' has no member named 'insertsort'; did you mean 'inserts'?
  127 |                                         newl.insertsort(p);
      |                                              ^~~~~~~~~~
      |                                              inserts
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1037 OO8-2 一元多项式链表类的运算
语言
C++
递交时间
2022-09-05 20:26:52
评测时间
2022-09-05 20:26:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes