Not bale to find the mistake pl. help

pl. check my code
giving an unexpected error I m not able to point it
code----> https://ide.codingblocks.com/s/244285

You haven’t sorted the array. In order to use binary search you must sort the array.

after soerting not geting the nas

after sorting not geting the ans

very late reply and not satisfied

Can you send me the updated code. I’ll submit it and correct it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.