Update exam_generator.cpp

a nother little fix