#include #include template using Matrix = std::vector>; int main() { Matrix m{{1, 2, 3}, {1, 4, 9}, {1, 8, 27}}; for (auto const& line : m) { for (auto x : line) std::cout << x << ' '; std::cout << '\n'; } }