Wrong Answer

foo.cc: In function 'int binary_search(int, int)':
foo.cc:29:16: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
   29 |         return ans;
      |                ^~~
foo.cc:19:27: note: 'ans' was declared here
   19 |         int l=ll,r=rr,mid,ans;
      |                           ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 6, expect 7. 4ms 412.0 KiB
#2 Wrong Answer Read 106116, expect 106117. 5ms 328.0 KiB
#3 Wrong Answer Read 50105942, expect 50105943. 60ms 752.0 KiB
#4 Wrong Answer Read 0, expect 997932. 47ms 680.0 KiB
#5 Wrong Answer Read 1394141, expect 1394142. 69ms 796.0 KiB

信息

递交者
类型
递交
题目
「一本通 1.2 练习 1」数列分段 II
语言
C++
递交时间
2023-08-22 16:55:04
评测时间
2023-08-22 16:55:04
评测机
分数
0
总耗时
187ms
峰值内存
796.0 KiB