Issue with primary key

When I execute the third code I.e to create marks table am facing the error as

There are no primary or candidate keys in the referenced table 'students' that match the referencing column list in the foreign key 'FK_marks_stu_name_20C1E124'-

Please help me to find the error in the error or am missing any basic concept of primary and foreign keys.
Thanks
Naren