记录详情

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 ( p;p<a+n;p++)  {cin>>*p;}
      |           ^
foo.cc:78:19: warning: unused variable 'cnt' [-Wunused-variable]
   78 |         int n;int cnt=0;
      |                   ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 792.0 KiB
#2 Accepted 7ms 788.0 KiB
#3 Accepted 6ms 792.0 KiB
#4 Accepted 7ms 792.0 KiB
#5 Accepted 7ms 792.0 KiB

信息

递交者
类型
递交
题目
P1047 A7-4 数组的查找函数
语言
C++
递交时间
2023-11-25 11:38:30
评测时间
2023-11-25 11:38:30
评测机
分数
100
总耗时
36ms
峰值内存
792.0 KiB