#include <iostream>
using namespace std;
void change(int* 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;
}
void change(int* b)
{ for (int i=0; i<4; i++)
{ *b=*b+1;
b++;
cout<<b;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBjaGFuZ2UoaW50KiBiKTsKaW50IG1haW4oKQogeyBpbnQgYVs1XT17MjAsMzAsNDAsNTAsNjB9OwogICAgY2hhbmdlKGEpOwogICAgZm9yIChpbnQgaT00OyBpPj0wOyBpLS0pCgkgY291dDw8YVtpXTw8ZW5kbDsKCSByZXR1cm4gMDsKIH0KCnZvaWQgY2hhbmdlKGludCogYikKeyBmb3IgKGludCBpPTA7IGk8NDsgaSsrKQogICAgewkqYj0qYisxOwoJICBiKys7CgkgIGNvdXQ8PGI7CiAgICAgfQp9Cg==