#include #include using namespace std; vector change_and_return(vector a) { int i; for (i = 0; i < a.size(); i++) a[i] = 30 + i; return a; } int main() { vector a(10), b; int i; for (i = 0; i < a.size(); i++) a[i] = 10+i; b = change_and_return(a); for (i = 0; i < a.size(); i++) { cout << "i: " << i << " - a[" << i << "]: " << a[i] << " - b[" << i << "]: " << b[i] << endl; } }