fork download
  1. #include <iostream>
  2. #include <map>
  3. #include <vector>
  4. #include <string>
  5. using namespace std;
  6.  
  7. int main() {
  8. map<string, vector<string> > myDictionary;
  9. myDictionary["cat"] = {"siamese", "15", "3-legged", "pussy", "George"};
  10. cout << "cat: ";
  11. for (auto x : myDictionary["cat"])
  12. cout << x << " ";
  13. cout << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
cat: siamese 15 3-legged pussy George