C++ task2 smth