#include <iostream>
#include <vector>
#include <memory>
using namespace std;
int main() {
cout<<"999999"<<endl;
shared_ptr<int> sp1(new int(100));
cout<<"sp1的值: "<<*sp1<<endl;
shared_ptr<vector<int>> temp1(new vector<int>());
cout<<"temp1的长度: "<<temp1->size()<<endl;
temp1->push_back(111);
cout<<"temp1的长度: "<<temp1->size()<<endl;
// std::shared_ptr<vector<int>> temp2;
// cout<<"temp2的长度: "<<temp2->size()<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8bWVtb3J5Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgoJY291dDw8Ijk5OTk5OSI8PGVuZGw7CgkKCXNoYXJlZF9wdHI8aW50PiBzcDEobmV3IGludCgxMDApKTsKCWNvdXQ8PCJzcDHnmoTlgLw6ICI8PCpzcDE8PGVuZGw7CgkKCXNoYXJlZF9wdHI8dmVjdG9yPGludD4+IHRlbXAxKG5ldyB2ZWN0b3I8aW50PigpKTsKCWNvdXQ8PCJ0ZW1wMeeahOmVv+W6pjogIjw8dGVtcDEtPnNpemUoKTw8ZW5kbDsKCQoJdGVtcDEtPnB1c2hfYmFjaygxMTEpOwoJY291dDw8InRlbXAx55qE6ZW/5bqmOiAiPDx0ZW1wMS0+c2l6ZSgpPDxlbmRsOwoJCgkvLyBzdGQ6OnNoYXJlZF9wdHI8dmVjdG9yPGludD4+IHRlbXAyOwoJLy8gY291dDw8InRlbXAy55qE6ZW/5bqmOiAiPDx0ZW1wMi0+c2l6ZSgpPDxlbmRsOwoJCglyZXR1cm4gMDsKfQ==