Update hard.cpp