记录详情

Wrong Answer

foo.cc: In member function 'PolyLinkNode<T>& LinkList<T>::operator+(LinkList<T>&)':
foo.cc:284:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  284 |   if(newp!=NULL)
      |   ^~
foo.cc:286:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  286 |    return *newhead;
      |    ^~~~~~
foo.cc: In function 'int main()':
foo.cc:305:11: warning: unused variable 'x' [-Wunused-variable]
  305 |  int n,nb,x;
      |           ^
foo.cc: In instantiation of 'PolyLinkNode<T>& LinkList<T>::operator+(LinkList<T>&) [with T = int]':
foo.cc:317:26:   required from here
foo.cc:222:28: warning: unused variable 'bnt' [-Wunused-variable]
  222 |   int t[100],t1[100],cnt=0,bnt=0,Ln=0;
      |                            ^~~
foo.cc: In instantiation of 'PolyLinkNode<T> LinkList<T>::Chong() [with T = int]':
foo.cc:324:32:   required from here
foo.cc:173:20: warning: variable 'pre' set but not used [-Wunused-but-set-variable]
  173 |   PolyLinkNode<T> *pre=NULL;
      |                    ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 1,2d0 < 4 2 1 0 3 5 < 3 2 1 1 2ms 384.0 KiB
#2 Wrong Answer 1,2d0 < 4 2 1 0 3 5 10 9 < 3 3ms 384.0 KiB
#3 Wrong Answer 1,2d0 < 4 2 1 0 3 5 10 9 < 3 3ms 384.0 KiB
#4 Wrong Answer 1,2d0 < 4 2 1 0 3 5 10 9 11 6 2ms 384.0 KiB
#5 Wrong Answer 1,2d0 < 3 2 1 1 6 7 -3 5 10 8 2ms 384.0 KiB

信息

递交者
类型
递交
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-16 10:58:47
评测时间
2022-05-16 10:58:47
评测机
分数
0
总耗时
14ms
峰值内存
384.0 KiB