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
  • 4,085
  • 4
  • 18
  • 39
Abhishekk
  • 5
  • 3

0 Answers0