Starting three test case gives runtime error and fourt test cases gives wrong answer
Hey @Jitu748
Your code would work fine if, in your struct emp, you use string instead of a character array
struct emp
{
string name;
int salary;
};
This is so because you are using the comparison operators (<, >) in the comparator function, which can be used on strings and not character arrays