#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> org = {1, 2, 3};
vector<int> nnew = {4, 5};
copy(nnew.begin(), nnew.end(), back_inserter(org));
for (int a : org) {
cout << a << " ";
}
cout << '\n';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJdmVjdG9yPGludD4gb3JnID0gezEsIDIsIDN9OwoJdmVjdG9yPGludD4gbm5ldyA9IHs0LCA1fTsKCQoJY29weShubmV3LmJlZ2luKCksIG5uZXcuZW5kKCksIGJhY2tfaW5zZXJ0ZXIob3JnKSk7Cglmb3IgKGludCBhIDogb3JnKSB7CgkJY291dCA8PCBhIDw8ICIgIjsKCX0KCWNvdXQgPDwgJ1xuJzsKCQoJcmV0dXJuIDA7Cn0=