Update P004.cpp