#include <iostream>
#include <cstdarg>
#include <vector>
void print_nums(int count, ...)
{
va_list args;
va_start(args, count);
for (int i = 0; i < count; ++i) {
std::cout << va_arg(args, int) << std::endl;
}
va_end(args);
}
int main()
{
print_nums(5, 666, 5.3, "asd", std::string("asda"), std::vector<char>());
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGFyZz4KI2luY2x1ZGUgPHZlY3Rvcj4KCnZvaWQgcHJpbnRfbnVtcyhpbnQgY291bnQsIC4uLikgCnsKICAgIHZhX2xpc3QgYXJnczsKICAgIHZhX3N0YXJ0KGFyZ3MsIGNvdW50KTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgY291bnQ7ICsraSkgewogICAgICAgIHN0ZDo6Y291dCA8PCB2YV9hcmcoYXJncywgaW50KSA8PCBzdGQ6OmVuZGw7CiAgICB9CiAgICB2YV9lbmQoYXJncyk7Cn0KCmludCBtYWluKCkKewogICAgcHJpbnRfbnVtcyg1LCA2NjYsIDUuMywgImFzZCIsIHN0ZDo6c3RyaW5nKCJhc2RhIiksIHN0ZDo6dmVjdG9yPGNoYXI+KCkpOwogICAgCiAgICByZXR1cm4gMDsKfQo=