#include<iostream> #include <vector> using namespace std; vector<int> *MyFind() { vector<int> *a=new vector<int>; a->push_back(123); a->push_back(23); return a; } void Find(vector<int> &vect) { vect.push_back(1); vect.push_back(3); vect.push_back(5); } int main() { vector<int> *b=MyFind(); cout<<b->size()<<endl; delete b ; system("pause"); return 0; }