#include <iostream>
using namespace std;
void change(int* b)
{ for (int i=0; i<4; i++)
{ *b=*b+1;
b++;
}
}
int main()
{ int a[5]={20,30,40,50,60};
change(a);
for (int i=4; i>=0; i--)
cout<<a[i]<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBjaGFuZ2UoaW50KiBiKQp7IGZvciAoaW50IGk9MDsgaTw0OyBpKyspCiAgICB7CSpiPSpiKzE7CgkgIGIrKzsKICAgICB9Cn0KaW50IG1haW4oKQogeyBpbnQgYVs1XT17MjAsMzAsNDAsNTAsNjB9OwogICAgY2hhbmdlKGEpOwogICAgZm9yIChpbnQgaT00OyBpPj0wOyBpLS0pCgkgY291dDw8YVtpXTw8ZW5kbDsKCSByZXR1cm4gMDsKIH0K