Custom comparators unusual behavior
In recent codeforces div-4 contest problem D I need to use custom comparator for which I was getting runtime error to this code then I changed it to thiscode and get accepted. What caused me runtime time error, as it seems like correct?
CodeChef Starters 136 Solution Discussion
CF Edu Round 166 Solution Discussion