Find Upper and Lower bound

please tell me what is wrong with my code, i think that this the right code for it.

hey @WARHEAD, it need a small change in if else case of upper bound function https://ide.codingblocks.com/s/145440

can you tell me the changes that you have made in the code


Refer to this code, firstly in line no 19, i have changed the comparison sign, and in line no 75, I have introduced endl as well.