Update qc.cpp

solved