fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. vector< vector<char> > vv = { { 'a', 'b' }, { 'c', 'd' } };
  9. for (auto& v : vv)
  10. {
  11. for (auto& n : v)
  12. cout << n << " ";
  13. cout << endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 3032KB
stdin
Standard input is empty
stdout
a b 
c d