Binary stl video


why i am getting upper_bound-a[]=0; for all cases

Hey @sakshi0406 ,
The compare function that you are forming is not correct . That is why is showing ambigious values .
Pass the compare function as a lambda function.
Hope it helps !
Happy coding !!