On line 23, you are trying to default construct a Quizdata object, but the only constructor you have defined is one that takes a string (line 11).
You can't re-call the constructor for student1 on line 31 anyway; just move line 23 down to that spot and pass the string in when constructing student1. Quizdata student1(n);