check.cpp