why i am getting upper_bound-a[]=0; for all cases
Binary stl video
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 !!