prog.cpp: In function ‘int main()’:
prog.cpp:35:5: error: ‘auto_ptr’ was not declared in this scope
auto_ptr<Test> ptest(new Test("123"));
^~~~~~~~
prog.cpp:35:18: error: expected primary-expression before ‘>’ token
auto_ptr<Test> ptest(new Test("123"));
^
prog.cpp:35:41: error: ‘ptest’ was not declared in this scope
auto_ptr<Test> ptest(new Test("123"));
^