#include
#include
using namespace std;
bool numeric(pair<string,int>str1,pair<string,int>str2)
{
int key1;
int key2;
key1=str1.second;
key2=str2.second;
if(key1==key2)
{
return str1.first<str2.first;
}
return key1>key2;
}
int main()
{
int x;
cin>>x;
int n;
cin>>n;
pair<string,int>p[100000];
string str;
int a;
for(int i=0;i<n;i++)
{
cin>>str;
cin>>a;
p[i]=make_pair(str,a);
}
sort(p,p+n,numeric);
for(int i=0;i<n;i++)
{
if(p[i].second<=x)
continue;
else
cout<<p[i].first<<" "<<p[i].second<<endl;
}
}
what is the problem in my code bcz test case is not passed