fork download
  1. #include <iostream>
  2. #include <map>
  3. #include <string>
  4. #include <vector>
  5. using namespace std;
  6.  
  7. int main() {
  8. map<string, vector<int> > m;
  9. m["Hi there"] = {1, 2, 3};
  10. m["Bobman"] = {2, 2, 4};
  11. m["Yes"] = {2, 2, 4};
  12.  
  13. for (const auto& item : m)
  14. {
  15. cout << item.first << endl;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 3276KB
stdin
Standard input is empty
stdout
Bobman
Hi there
Yes