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

Правка en1, от 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());
}

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский 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 Английский mostafaabdelaal_03 2024-02-18 18:40:18 412 Initial revision (published)