Dopo il

cin>>n_stud;

aggiungi un

cin.ignore();