Update 1045.cpp