#include <iostream>
int main() {
int *a = new int(1);
std::cout << "a: " << a << " " << *a << " " << &a << std::endl;
int *b = new int[10];
b[0] = 2;
b[1] = 3;
std::cout << "b: " << b << " " << *b << " " << &b << std::endl;
delete a;
delete[] b;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKSB7CglpbnQgKmEgPSBuZXcgaW50KDEpOwoJc3RkOjpjb3V0IDw8ICJhOiAiIDw8IGEgPDwgIiAiIDw8ICphIDw8ICIgIiA8PCAmYSA8PCBzdGQ6OmVuZGw7CglpbnQgKmIgPSBuZXcgaW50WzEwXTsKCWJbMF0gPSAyOwoJYlsxXSA9IDM7CglzdGQ6OmNvdXQgPDwgImI6ICIgPDwgYiA8PCAiICIgPDwgKmIgPDwgIiAiIDw8ICZiIDw8IHN0ZDo6ZW5kbDsKCWRlbGV0ZSBhOwoJZGVsZXRlW10gYjsKCXJldHVybiAwOwp9