Wrong Answer

foo.cc: In function 'int main()':
foo.cc:21:29: warning: unused variable 'mid' [-Wunused-variable]
   21 |  int a[N],n,i,key,start,end,mid,num=0,index;
      |                             ^~~
foo.cc:21:33: warning: unused variable 'num' [-Wunused-variable]
   21 |  int a[N],n,i,key,start,end,mid,num=0,index;
      |                                 ^~~
foo.cc:31:2: warning: 'index' is used uninitialized in this function [-Wuninitialized]
   31 |  if(index==-1)
      |  ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 2. 3ms 384.0 KiB
#2 Wrong Answer Read 0, expect 4. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1168 折半查找
语言
C++
递交时间
2021-12-19 08:38:17
评测时间
2021-12-19 08:38:17
评测机
分数
0
总耗时
5ms
峰值内存
384.0 KiB