#include <iostream>
#include <vector>
#include <array>
int main()
{
//matrix com vector
std::vector<std::vector<int>> matriz = { {7, 5}, {16, 8}};
for(std::vector<int> vetor : matriz) {
for (int numero : vetor){
std::cout << numero << ' ';
}
std::cout<<"\n";
}
std::array<std::array<int, 3> , 2> matriz2 = {{ {{2 , 5, 3}} , {{1, 4, 8}} }};
for (auto& linha : matriz2){
for (auto& num : linha){
std::cout << num << ' ';
}
std::cout<<"\n";
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YXJyYXk+CgppbnQgbWFpbigpCnsKCgkvL21hdHJpeCBjb20gdmVjdG9yCiAgICBzdGQ6OnZlY3RvcjxzdGQ6OnZlY3RvcjxpbnQ+PiBtYXRyaXogPSB7IHs3LCA1fSwgezE2LCA4fX07CgogICAgZm9yKHN0ZDo6dmVjdG9yPGludD4gdmV0b3IgOiBtYXRyaXopIHsKICAgIAlmb3IgKGludCBudW1lcm8gOiB2ZXRvcil7CiAgICAJCXN0ZDo6Y291dCA8PCBudW1lcm8gPDwgJyAnOwkKICAgIAl9CiAgICAJc3RkOjpjb3V0PDwiXG4iOwogICAgfQogICAgCiAgICBzdGQ6OmFycmF5PHN0ZDo6YXJyYXk8aW50LCAzPiAsIDI+IG1hdHJpejIgPSB7eyB7ezIgLCA1LCAzfX0gLCB7ezEsIDQsIDh9fSB9fTsKICAgIAogICAgZm9yIChhdXRvJiBsaW5oYSA6IG1hdHJpejIpewogICAgCWZvciAoYXV0byYgbnVtIDogbGluaGEpewogICAgCQlzdGQ6OmNvdXQgPDwgbnVtIDw8ICcgJzsKICAgIAl9CiAgICAJCiAgICAJc3RkOjpjb3V0PDwiXG4iOwogICAgfQp9