#include <iostream>
using namespace std;
int main() {
int* a = new int[2];
a[0] = 12;
a[1] = 5;
int *b = &a[1];
std::cout << a << "," << &a[0] << ", "<< &a << ", "
<< *a << ", " << a[0] << ", "<< a[1] << ", " << b << ", " << &a[1]
<< std::endl;
delete[] a;
std::cout << *b << a[1] << a[0];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgCiAgICBpbnQqIGEgPSBuZXcgaW50WzJdOwogICAgYVswXSA9IDEyOwogICAgYVsxXSA9IDU7CiAgICBpbnQgKmIgPSAmYVsxXTsKICAgIHN0ZDo6Y291dCA8PCBhIDw8ICIsIiA8PCAgJmFbMF0gPDwgIiwgIjw8ICZhIDw8ICIsICIgCiAgICA8PCAqYSA8PCAiLCAiIDw8IGFbMF0gPDwgIiwgIjw8IGFbMV0gPDwgIiwgIiA8PCBiIDw8ICAiLCAiIDw8ICZhWzFdIAogICAgPDwgc3RkOjplbmRsOwoJZGVsZXRlW10gYTsKICAgIHN0ZDo6Y291dCA8PCAqYiA8PCBhWzFdIDw8IGFbMF07CglyZXR1cm4gMDsKfQ==