Test case 0 fails

test case 0 is failing for my submission. I were not able to find out the reason. can you please help.

Please provide your code in Coding Blocks IDE.

You are using set, in set you would have only one copy of object even if duplicates exist.
Use multiset, or use simple vector/array and sort it.

Yeah, i thought of using it but i thought there would not be same employee name with different salary.
How will someone recognize the employee if 2 employees has same name but different salary.

@nirmachoudhary204 good thinking, the problem you are thinking do exist in real world, and to solve it we use unique IDs for each employee, but that is a problem of DBMS. Here we need not think about that.
If this solves your doubt please mark it as resolved.