#include <memory>

int main()
{
    std::auto_ptr<int> pbase[3];
    
    std::auto_ptr<int> b1(new int(1));
    std::auto_ptr<int> b2(new int(2));
    std::auto_ptr<int> b3(new int(3));
    
    pbase[0] = b1;
    pbase[1] = b2;
    pbase[2] = b3;
    
    return 0;
}