Second solved problem cpp file