Set::find vs binary_search Help needed ASAP

This is not what you described. You said “binary search on set of pairs gave ac”.
I checked out all your submissions for this problem, you have no submission with binary_search on a set of pairs that gives AC.
So could you rephrase what it is that you don’t understand?