#include <iostream>
#include <initializer_list>
#include <algorithm>
#include <cassert>
struct testclass
{
int n[10] = {};
testclass(std::initializer_list<int> l)
{
auto end = l.size() <= 10 ? l.end() : l.begin() + 10;
std::copy(l.begin(), end, n);
}
};
int main()
{
testclass t{ 1, 2, 3, 4, 5, 6 };
for (unsigned i = 0; i<10; ++i)
std::cout << t.n[i] << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW5pdGlhbGl6ZXJfbGlzdD4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGNhc3NlcnQ+CgpzdHJ1Y3QgdGVzdGNsYXNzCnsKICAgIGludCBuWzEwXSA9IHt9OwoKICAgIHRlc3RjbGFzcyhzdGQ6OmluaXRpYWxpemVyX2xpc3Q8aW50PiBsKQogICAgewogICAgICAgIGF1dG8gZW5kID0gbC5zaXplKCkgPD0gMTAgPyBsLmVuZCgpIDogbC5iZWdpbigpICsgMTA7CiAgICAgICAgc3RkOjpjb3B5KGwuYmVnaW4oKSwgZW5kLCBuKTsKICAgIH0KfTsKCmludCBtYWluKCkKewogICAgdGVzdGNsYXNzIHR7IDEsIDIsIDMsIDQsIDUsIDYgfTsKICAgIGZvciAodW5zaWduZWQgaSA9IDA7IGk8MTA7ICsraSkKICAgICAgICBzdGQ6OmNvdXQgPDwgdC5uW2ldIDw8ICdcbic7Cn0=