Please check my code tell me where the problem is

Hi @gaganpreetsachdev1 you need to sort the activities according to their ending time

how can I make a boolean function for vector. I want to make a compare function

@gaganpreetsachdev1

bool sort(pair<int, int> p1, pair<int, int> p2) {
//return value here
//values can be accessed by
//p1.second
//p2.second

//return in increasing order
}