Koi error bta do please

There is logical error , take input as vector<string,int>.
Understand this question

Eve 78
Bob 99
Suzy 86
Alice 86

Eve ek string hai isse getline se input mtt lo sirf cin>>string use kro
78 ek seperate integer number hai cin>>num
now you can see string and num pair 4 times
so use vector<string,int> and in your comparator function do this

if(p1.second==p2.second)   
{
return p1.first<p2.first;  
}
return p1.second>p2.second;

here p1 & p2 are vector<string,int>
p1.first is string
p1.second is int.

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.