#include <iostream>
using namespace std;
int *vernutMassiv(int a, int be, int ce)
{
static int massiv[] = {a, be, ce};
return massiv;
}
int main() {
int* massiv1 = vernutMassiv(1,2,3);
int* massiv2 = vernutMassiv(2,3,4);
int* massiv3 = vernutMassiv(3,4,5);
cout << massiv1[0];
cout << massiv2[0];
cout << massiv3[0];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50ICp2ZXJudXRNYXNzaXYoaW50IGEsIGludCBiZSwgaW50IGNlKQp7CiAgICBzdGF0aWMgaW50IG1hc3NpdltdID0ge2EsIGJlLCBjZX07CiAgICByZXR1cm4gbWFzc2l2Owp9CgppbnQgbWFpbigpIHsKCWludCogbWFzc2l2MSA9IHZlcm51dE1hc3NpdigxLDIsMyk7CglpbnQqIG1hc3NpdjIgPSB2ZXJudXRNYXNzaXYoMiwzLDQpOwoJaW50KiBtYXNzaXYzID0gdmVybnV0TWFzc2l2KDMsNCw1KTsKCQoJY291dCA8PCBtYXNzaXYxWzBdOwoJY291dCA8PCBtYXNzaXYyWzBdOwoJY291dCA8PCBtYXNzaXYzWzBdOwoJCglyZXR1cm4gMDsKfQ==