#include <iostream>
#include <memory>
using namespace std;
int main() {
shared_ptr<int> p{new int{10}};
cout << *p << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWVtb3J5Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzaGFyZWRfcHRyPGludD4gcHtuZXcgaW50ezEwfX07CiAgICBjb3V0IDw8ICpwIDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==