In my program, set has elements of type pair. I also implemented the logic so that set is sorted based on element\
set
pair