Fake binary search

I really didn’t get that why i am getting runtime error…

Anyone…please
thankyou…

Question-FAKEBS Problem - CodeChef

My code :-
https://www.codechef.com/viewsolution/18654331

I think it’s because of the declaration


#define input_array ll ar[n],ar1[n];for(ll i=1;i<=n;i++)cin>>ar[i];

Have a look at this .
I modified your code and it got accepted .

1 Like

Thankyou brother…:slight_smile:

If you think I solved your issue then why don’t you accept this answer !