c++ task #1