Compile Error
/in/foo.cc: In function 'int fz(int, int, int)': /in/foo.cc:8:7: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] mid=l+r>>1; ~^~ /in/foo.cc:26:13: error: 'b' was not declared in this scope if(a[mid]>b) ^ /in/foo.cc:28:4: error: 'y' was not declared in this scope y=mid-1; ^ /in/foo.cc:30:13: error: 'b' was not declared in this scope if(a[mid]<b) ^ /in/foo.cc:37:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
信息
- 递交者
- 类型
- 递交
- 题目
- 二分查找(binary)
- 题目数据
- 下载
- 语言
- C++
- 递交时间
- 2019-07-03 11:39:55
- 评测时间
- 2020-07-10 15:27:08
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes