记录详情

Wrong Answer

foo.cc: In member function 'PolyListNode& PolyListNode::operator=(PolyListNode&)':
foo.cc:16:77: warning: no return statement in function returning non-void [-Wreturn-type]
   16 |  PolyListNode & operator = (PolyListNode &x){ coe = x.coe; index = x.index; }
      |                                                                             ^
      |                                                                             return *this;
foo.cc: In constructor 'PolyList::PolyList(int)':
foo.cc:25:6: warning: 'PolyList::n' will be initialized after [-Wreorder]
   25 |  int n;    //数量
      |      ^
foo.cc:24:6: warning:   'int PolyList::size' [-Wreorder]
   24 |  int size;   //有效范围
      |      ^~~~
foo.cc:27:2: warning:   when initialized here [-Wreorder]
   27 |  PolyList(int n = 0):n(n),size(1){ a =new PolyListNode[size]; }
      |  ^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 3, expect 113. 4ms 384.0 KiB
#2 Wrong Answer Read 3, expect 8. 3ms 384.0 KiB
#3 Wrong Answer Read 256, expect 129. 4ms 384.0 KiB
#4 Wrong Answer Read 4, expect 129. 4ms 384.0 KiB
#5 Wrong Answer Read 4, expect 139. 5ms 384.0 KiB

信息

递交者
类型
递交
题目
P1021 OO5-1 一元多项式类的求值
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-01 13:08:48
评测时间
2022-05-01 13:08:48
评测机
分数
0
总耗时
22ms
峰值内存
384.0 KiB