#include <iostream>
using namespace std;
struct ivector3d {
int arrray[3];
int* get() {
return arrray;
}
};
void scale(ivector3d* v, int k) {
for (int i = 0; i != 3; ++i)
v->arrray[i] *= k;
}
int main() {
ivector3d iv3d = { 1,1,1 };
scale(&iv3d, 2);
int* b = iv3d.get();
cout << b << endl;
}