Getting an error

I am solving this question…
646. Maximum Length of Pair Chain

Although i have come up with the logic… Which is LIs…
I have implemented that even…But it is showing some error.
I think , error is in comparator function, but i am not able to find, it could you see this is please.
This is my code…


This is the screenshoot of error…

Thanks

hello @ashishnnnnn
checking . . . . . .

image

add this -> if first value is equal then sort in basis of second value.

Yaa…
Got this…
A lot of Thanks… :slight_smile: