fork(1) download
  1. #include <vector>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6. std::vector<std::vector<int>> LN ={ {1,1,2,2,},
  7. {2,2,1,2,},
  8. {3,5,2,5,},
  9. {1,1,2,3,}};
  10. for(auto& row: LN) {
  11. for(int n: row)
  12. std::cout << n << ' ';
  13. std::cout << '\n';
  14. }
  15. }
  16.  
Success #stdin #stdout 0s 2988KB
stdin
Standard input is empty
stdout
1 1 2 2 
2 2 1 2 
3 5 2 5 
1 1 2 3