#include <iostream>
#include <memory>
using namespace std;
void f(){
unique_ptr<int[]> p(new int[5]{1,2,3,4,5});
cout<<p[0]<<endl;
p.reset();
if(p.get()==nullptr) cout<<"NULL"<<endl;
}
int main() {
// your code goes here
cout<<"begin call f()"<<endl;
f();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWVtb3J5Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBmKCl7Cgl1bmlxdWVfcHRyPGludFtdPiBwKG5ldyBpbnRbNV17MSwyLDMsNCw1fSk7Cgljb3V0PDxwWzBdPDxlbmRsOwoJcC5yZXNldCgpOwoJaWYocC5nZXQoKT09bnVsbHB0cikgY291dDw8Ik5VTEwiPDxlbmRsOwp9CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWNvdXQ8PCJiZWdpbiBjYWxsIGYoKSI8PGVuZGw7CglmKCk7CglyZXR1cm4gMDsKfQ==