Compile Error

foo.cc: In function 'int main()':
foo.cc:37:8: error: overloaded function with no contextual type information
   37 |  end=n-1;
      |        ^
foo.cc:38:8: error: expected primary-expression before 'return'
   38 |  index=return binary_search(a,key,start,end);
      |        ^~~~~~
foo.cc:29:25: warning: unused variable 'enl' [-Wunused-variable]
   29 |  int a[N],n,i,key,start,enl,nid,num=0,index;
      |                         ^~~
foo.cc:29:29: warning: unused variable 'nid' [-Wunused-variable]
   29 |  int a[N],n,i,key,start,enl,nid,num=0,index;
      |                             ^~~
foo.cc:29:33: warning: unused variable 'num' [-Wunused-variable]
   29 |  int a[N],n,i,key,start,enl,nid,num=0,index;
      |                                 ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1168 折半查找
语言
C++
递交时间
2021-12-15 18:46:17
评测时间
2021-12-15 18:46:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes