Update exam.cpp