computer science

E:\try\main.cpp|26|error: ‘student’ was not declared in this scope|

It means just what it says: you refer to student on line 26 as though it were a type, and it’s not. There is a struct Student, but that’s not the same thing. C++ is case sensitive.

Per the comments, you should edit your question to be tagged C++.

Leave a Comment