#include <vector>
std::vector<int> get_stuff( int how_many, std::vector<int> pre_buff = std::vector<int>() ) {
pre_buff.clear();
for (int i = 0; i < how_many; ++i)
pre_buff.push_back(i);
// blah blah
return pre_buff;
}
#include <iostream>
int main() {
auto v = get_stuff(7);
for (auto x:v)
std::cout << x << "\n";
}
I2luY2x1ZGUgPHZlY3Rvcj4Kc3RkOjp2ZWN0b3I8aW50PiBnZXRfc3R1ZmYoIGludCBob3dfbWFueSwgc3RkOjp2ZWN0b3I8aW50PiBwcmVfYnVmZiA9IHN0ZDo6dmVjdG9yPGludD4oKSApIHsKICBwcmVfYnVmZi5jbGVhcigpOwogIGZvciAoaW50IGkgPSAwOyBpIDwgaG93X21hbnk7ICsraSkKICAgIHByZV9idWZmLnB1c2hfYmFjayhpKTsKICAvLyBibGFoIGJsYWgKICByZXR1cm4gcHJlX2J1ZmY7Cn0KI2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgbWFpbigpIHsKICAgIGF1dG8gdiA9IGdldF9zdHVmZig3KTsKICAgIGZvciAoYXV0byB4OnYpCiAgICAgIHN0ZDo6Y291dCA8PCB4IDw8ICJcbiI7Cn0=