Update new_error_detect.cpp