Array binary search

my code is absolutely corrrect
but it is showing this error
runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15
i cant figure it out
here is my code https://ide.codingblocks.com/s/267947

Modified Code

you forgot to break see at line no 10

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course

its still failing the two test cases

Modified Code

you have to print -1 if element is not find

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course