Create new_error_detect.cpp