Here is my code:
bool cmp(const pair< pair<char,int>,int> &a,const pair< pair<char,int>,int> &b){
return a.second>b.second;
}
I'm trying to sort the map by value. I cant figure out how do i tackle this error.
Error: no match for 'operator-'(...)