#include <bits/stdc++.h>
struct pt {
int x,y,z,w;
};
pt fuuuuu(int i) {
return {4*i+1,4*i+2,4*i+3,4*i+4};
}
int main() {
std::vector<pt> vec;
for (int i = 0; i < 5; i++) {
vec.push_back(fuuuuu(i));
}
// цикл:
for (auto [x,y,z,w] : vec) {
std::cout << x << ' ' << y << ' ' << z << ' ' << w << std::endl;
}
// вызов функции:
std::cout << "fuuuuu\n";
auto [x,y,z,w] = fuuuuu(10);
std::cout << x << ' ' << y << ' ' << z << ' ' << w << std::endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnN0cnVjdCBwdCB7CglpbnQgeCx5LHosdzsKfTsKCnB0IGZ1dXV1dShpbnQgaSkgewoJcmV0dXJuIHs0KmkrMSw0KmkrMiw0KmkrMyw0KmkrNH07Cn0KCmludCBtYWluKCkgewoJc3RkOjp2ZWN0b3I8cHQ+IHZlYzsKCWZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKSB7CgkJdmVjLnB1c2hfYmFjayhmdXV1dXUoaSkpOwoJfQoJLy8g0YbQuNC60Ls6Cglmb3IgKGF1dG8gW3gseSx6LHddIDogdmVjKSB7CgkJc3RkOjpjb3V0IDw8IHggPDwgJyAnIDw8IHkgPDwgJyAnIDw8IHogPDwgJyAnIDw8IHcgPDwgc3RkOjplbmRsOyAKCX0KCS8vINCy0YvQt9C+0LIg0YTRg9C90LrRhtC40Lg6CglzdGQ6OmNvdXQgPDwgImZ1dXV1dVxuIjsKCWF1dG8gW3gseSx6LHddID0gZnV1dXV1KDEwKTsKCXN0ZDo6Y291dCA8PCB4IDw8ICcgJyA8PCB5IDw8ICcgJyA8PCB6IDw8ICcgJyA8PCB3IDw8IHN0ZDo6ZW5kbDsgCglyZXR1cm4gMDsKfQ==