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