Sort game doubt

https://ide.geeksforgeeks.org/0WW6PSuquf
https://online.codingblocks.com/app/player/127473/content/109889/4724/code-challenge
here i have 2 doubts
1.why is missing template arguments before token p1 error coming?
2.how to add the condition if >x in case of equal

https://ide.geeksforgeeks.org/2PxymTV475

Check now.

You can refer this https://ide.codingblocks.com/s/263817

https://ide.codingblocks.com/s/263817 this link is not opening could you copy paste the code and send me

using namespace std; 
bool cmp(pair<string, int> v1, pair<string, int> v2) 
{ 
if (v1.second == v2.second) 
{ 
 return v1.first < v2.first;
} 
else return v1.second > v2.second;        
} 
      
int main() 
{ 
int sal; cin >> sal; 
int n; cin >> n; 
vector<pair<string, int>> v; 
for (int i = 0; i < n; i++) 
{ 
int salary; string name; 
 cin >> name >> salary; 
if (salary >= sal)                   
{ 
v.push_back(make_pair(name, salary)); 
} }

sort(v.begin(), v.end(), cmp); 
for (auto it : v) cout << it.first << " " << it.second << endl; return 0; }

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.