Please point out the errors and correct my code accordingly

Code not running. Not able to debug it.
link to my code- https://ide.codingblocks.com/s/227583

@pulkit_pandey09

  1. there are some typing errors at line 9.
  2. In sort function you can only pass three parameters not fourth one that you have passed.
  3. Also you can greatly simply your solution by taking input vector<pair<string,int>>arr and then sort it in descending order. and just print the first few elements which have salary greater than said.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.