#include <iostream>
#include <vector>
using namespace std;
template<typename T, typename... Args>
void push_back_vec(vector<T>& vec, Args&&... args)
{
((void)vec.push_back(forward<Args>(args)), ...);
}
int main()
{
int x = 1, y = 2;
vector<int> v{};
push_back_vec(v, 0, x, y);
push_back_vec(v, 3, 3 + x, 3 + y);
for (const auto& i : v) cout << i << " ";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCnRlbXBsYXRlPHR5cGVuYW1lIFQsIHR5cGVuYW1lLi4uIEFyZ3M+CnZvaWQgcHVzaF9iYWNrX3ZlYyh2ZWN0b3I8VD4mIHZlYywgQXJncyYmLi4uIGFyZ3MpCnsKICAgICgodm9pZCl2ZWMucHVzaF9iYWNrKGZvcndhcmQ8QXJncz4oYXJncykpLCAuLi4pOwp9CiAKaW50IG1haW4oKQp7CiAgICBpbnQgeCA9IDEsIHkgPSAyOwogICAgdmVjdG9yPGludD4gdnt9OwogCiAgICBwdXNoX2JhY2tfdmVjKHYsIDAsIHgsIHkpOwogICAgcHVzaF9iYWNrX3ZlYyh2LCAzLCAzICsgeCwgMyArIHkpOwogCiAgICBmb3IgKGNvbnN0IGF1dG8mIGkgOiB2KSBjb3V0IDw8IGkgPDwgIiAiOwogCiAgICByZXR1cm4gMDsKfQ==