fork download
  1. #include <string>
  2. #include <map>
  3. #include <set>
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.  
  11. map<string, set<int,greater<int>>> data;
  12. data["first"].insert(1);
  13. data["first"].insert(2);
  14. data["first"].insert(7);
  15. data["first"].insert(0);
  16.  
  17. for(auto x: data["first"])
  18. {
  19. cout << x << endl;
  20. }
  21. }
  22.  
Success #stdin #stdout 0s 4324KB
stdin
Standard input is empty
stdout
7
2
1
0