Update 1049.cpp