TEST CASE ERROR

Code is not getting verified as per test cases.

try to debug for this input :
5
3
5
6
9
78
3
correct output : 0

No errors captured when debugged for this set of inputs. The code is working completely well.

Upon giving the set inputs provided by you the code is giving proper output. I am not able to resolve the lapse on my end…Kindly help me resolving this issue.

int mid = (lo + hi / 2);
put the bracket like (lo+hi)/2