I want to know how to use these STL functions. for example in the question CSS2 (LTIME17) ,i calculated upper bound and lower bound modifying the binary search code(myself). but i want to know that how can i use these inbuilt functions to save time . link to my accepted solution  http://www.codechef.com/viewsolution/5225565 . But on using these functions I am getting an error on ideone  http://ideone.com/wuLk1P asked 26 Oct '14, 15:23

why subtract arr1 form lower_bound() ? answered 31 May '17, 20:13
1
Because
(31 May '17, 20:37)
