fork(36) download
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4.  
  5. int main()
  6. {
  7. std::map<std::string, std::string> x = {{"A", "ASDF"}, {"B", "DESU"}, {"C", "BLAH"}};
  8.  
  9. for(auto i=x.begin(); i!=x.end(); ++i)
  10. std::cout << i->first << ':' << i->second << '\n';
  11. }
Success #stdin #stdout 0s 3064KB
stdin
Standard input is empty
stdout
A:ASDF
B:DESU
C:BLAH