#include <iostream>
#include <memory>
using namespace std;
std::unique_ptr<int> func()
{
std::unique_ptr<int> p(new int());
return p;
}
int main() {
cout << *func() << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWVtb3J5Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RkOjp1bmlxdWVfcHRyPGludD4gZnVuYygpCnsKCXN0ZDo6dW5pcXVlX3B0cjxpbnQ+IHAobmV3IGludCgpKTsKCXJldHVybiBwOwp9CgppbnQgbWFpbigpIHsKCgljb3V0IDw8ICpmdW5jKCkgPDwgZW5kbDsKCgoJcmV0dXJuIDA7Cn0=