Upper and lower binary search

https://ide.codingblocks.com/s/55185 please debug the code i don’t understand my problem

this code is done don’t watch !