Advertisement
HabKaffee

Untitled

Nov 4th, 2021
994
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <list>
  2. #include <vector>
  3. #include <iostream>
  4. #include <string>
  5.  
  6. int main() {
  7.     int size = 0, num_of_commands = 0;
  8.     std::cin >> size >> num_of_commands;
  9.     std::vector<std::list<std::string>> vector(size, std::list<std::string>(num_of_commands, ""));
  10.     for (auto obj: vector) {
  11.         for (auto list: obj) {
  12.             std::cout << list << " || ";
  13.         }
  14.         std::cout << std::endl;
  15.     }
  16.     return 0;
  17. }
Advertisement
RAW Paste Data Copied
Advertisement