Update tp1.cpp