Update pat_1012.cpp