main.cpp uploaded.

auto_ptr simpliest version.