On lines 7 and 8 you are not allocating memory correctly. You cannot say
1 2
quiz = new q[];
assignment = new a[];
What data type is "q" and "a".
A recommendation would be to pass in an integer instead of an array and then allocate an array using the integers, such as:
1 2
quiz = newdouble[q];
assignment = newdouble[a];
Just make sure you deallocate those variables in your destructor or else you will get memory leaks.