Solve problems 18,67 using C++.