Update exam_generator.cpp