#include <iostream>
#include <vector>
int main() {
std::vector<int> v;
v.reserve(10);
for (int i = 0; i < 10; ++i)
{
v[i] = i * 2;
}
for (int i = 0; i < 10; ++i)
{
std::cout << v[i] << " ";
}
std::cout << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKaW50IG1haW4oKSB7CglzdGQ6OnZlY3RvcjxpbnQ+IHY7Cgl2LnJlc2VydmUoMTApOwoJZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgKytpKQoJewoJCXZbaV0gPSBpICogMjsKCX0KCQoJZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgKytpKQoJewoJCXN0ZDo6Y291dCA8PCB2W2ldIDw8ICAiICI7Cgl9CglzdGQ6OmNvdXQgPDwgc3RkOjplbmRsOwoJCglyZXR1cm4gMDsKfQ==