记录详情

Accepted

foo.cc: In function 'int SearchArray(Node*, int)':
foo.cc:35:13: warning: statement has no effect [-Wunused-value]
   35 |         for(head;head!=p;head=head->next)
      |             ^~~~
foo.cc: In function 'int main()':
foo.cc:81:11: warning: statement has no effect [-Wunused-value]
   81 |     for ( pp;pp<a+n;pp++)  {cin>>*pp;}
      |           ^~
foo.cc:78:19: warning: unused variable 'cnt' [-Wunused-variable]
   78 |         int n;int cnt=0;
      |                   ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 708.0 KiB
#2 Accepted 5ms 792.0 KiB
#3 Accepted 6ms 816.0 KiB
#4 Accepted 7ms 836.0 KiB
#5 Accepted 6ms 792.0 KiB

信息

递交者
类型
递交
题目
A7-4 数组的查找函数
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C++
递交时间
2023-11-25 10:46:56
评测时间
2023-11-25 10:46:56
评测机
分数
100
总耗时
30ms
峰值内存
836.0 KiB