Some kind of error working fine before in similar codes. This is binary searching Algorithm implementation on C++. Linear search is working great. array is giving some kind