problem 1 c++