My code is giving correct output for sample case but when i try to submit it is giving wrong answer for every testcase.plz look into it
Change line no 23 of your code :
if(emp[i].second >= th)
Change line no 23 of your code :
if(emp[i].second >= th)