how i can move element of dynamic vector in argument of function push_back for dynamic vector. Probably, i’ve said something and it isn’t right. Sorry, but i don't know English so good…
vector<int> *ans = new vector<int>();
vector<int> *x = new vector<int>();
ans->push_back(x[i]);
The simplest
But I don't understand why you call that "move element."
BTW
vector<int>*is nonsense.xmanages a dynamically allocated memory andvector<int>*never looks good.