#include <array>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<array<int, 5>> foo;
foo.push_back({0, 1, 2, 3, 4});
foo.resize(2);
foo.push_back({5, 6, 7, 8, 9});
for(auto& i : foo) {
for(auto& j : i) {
cout << j << ' ';
}
cout << endl;
}
return 0;
}
I2luY2x1ZGUgPGFycmF5PgojaW5jbHVkZSA8aW9zdHJlYW0+CiNpbmNsdWRlIDx2ZWN0b3I+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXZlY3RvcjxhcnJheTxpbnQsIDU+PiBmb287CgkKCWZvby5wdXNoX2JhY2soezAsIDEsIDIsIDMsIDR9KTsKCWZvby5yZXNpemUoMik7Cglmb28ucHVzaF9iYWNrKHs1LCA2LCA3LCA4LCA5fSk7CgkKCWZvcihhdXRvJiBpIDogZm9vKSB7CgkJZm9yKGF1dG8mIGogOiBpKSB7CgkJCWNvdXQgPDwgaiA8PCAnICc7CgkJfQoJCWNvdXQgPDwgZW5kbDsKCX0KCXJldHVybiAwOwp9