fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4.  
  5. int main() {
  6. std::vector<std::vector<std::string>> stories;
  7. stories.push_back({"Once", "upon", "a", "time"});
  8.  
  9. for (const auto& x : stories)
  10. for (const std::string& str : x)
  11. std::cout << str << ' ';
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
Once upon a time