/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'void DestroyList_L(LNode*&)':
foo.cc:26:14: warning: statement has no effect [-Wunused-value]
   26 |  for(L->prior==NULL; p; p=p->prior) //从后向前逐个销毁
      |              ^
foo.cc: In function 'int CreateList_L(LNode*&)':
foo.cc:84:6: warning: unused variable 'i' [-Wunused-variable]
   84 |  int i,n;
      |      ^
foo.cc: In function 'int Merg_L(LinkList, LinkList, LNode*&)':
foo.cc:135:17: warning: unused variable 'pc' [-Wunused-variable]
  135 |  LinkList pa,pb,pc,t;    //定义指向三个链表元素的指针
      |                 ^~
foo.cc: In function 'int CreateList_L(LNode*&)':
foo.cc:98:1: warning: control reaches end of non-void function [-Wreturn-type]
   98 | }
      | ^
foo.cc: In function 'int Merg_L(LinkList, LinkList, LNode*&)':
foo.cc:149:1: warning: control reaches end of non-void function [-Wreturn-type]
  149 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:155:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
  155 |  freopen("twlist.in","r",stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:156:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
  156 |  freopen("twlist.out","w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,6 > 1 a 99 > 7 e 59 > 3 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1309 双向链表实验
题目数据
下载
语言
C++
递交时间
2022-07-27 16:59:23
评测时间
2022-07-27 16:59:23
评测机
分数
0
总耗时
2ms
峰值内存
384.0 KiB