0

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-'(...)

Yunus Temurlenk
  • 3,378
  • 3
  • 14
  • 34
Abhishekk
  • 1
  • 2

0 Answers0