why sorting vector in map does not work ?? Problem D In DIV 3 Round!

Revision en1, by mostafaabdelaal_03, 2024-02-18 18:40:18
I get The idea of Problem D Today But I was getting WA and I did not know where is the wrong.. After the contest I discovered that my map donot do sorting to vector of string in it ...
why ???
map<char, vector<string>>mp;
for(auto i:mp){
    sort(i.second.begin(), i.second.end());
}

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English mostafaabdelaal_03 2024-02-18 18:43:46 84 Tiny change: 'contest:\n1\n1\nD\n9H 4H\n\n' -> 'contest:\n\n1\n\n1\n\nD\n\n9H 4H\n\n\n'
en1 English mostafaabdelaal_03 2024-02-18 18:40:18 412 Initial revision (published)