foo.cpp:18:13: error: expected class-name before '(' token
~Studnet() {}
^
foo.cpp: In member function 'int Student::Stundet(std::string, int, int, char, char, int)':
foo.cpp:17:97: error: only constructors take member initializers
Stundet(string name, int finalScore, int classScore, char cadre, char fromWest, int paper): Name(name), FinalScore(finalScore), ClassScore(classScore), Cadre(cadre), FromWest(fromWest), Paper(paper) {}
^
foo.cpp:17:205: warning: no return statement in function returning non-void [-Wreturn-type]
Stundet(string name, int finalScore, int classScore, char cadre, char fromWest, int paper): Name(name), FinalScore(finalScore), ClassScore(classScore), Cadre(cadre), FromWest(fromWest), Paper(paper) {}
^
foo.cpp: In member function 'int Student::calcBonus()':
foo.cpp:27:13: error: 'FinalSore' was not declared in this scope
if (FinalSore > 90)
^
foo.cpp: In function 'int main()':
foo.cpp:56:86: error: no matching function for call to 'Student::Student(std::string&, int&, int&, int&, int&, int&)'
Student *s = new Student(name, finalScore, classScore, cadre, fromWest, paper);
^
foo.cpp:56:86: note: candidates are:
foo.cpp:7:7: note: Student::Student()
class Student
^
foo.cpp:7:7: note: candidate expects 0 arguments, 6 provided
foo.cpp:7:7: note: Student::Student(const Student&)
foo.cpp:7:7: note: candidate expects 1 argument, 6 provided
foo.cpp:7:7: note: Student::Student(Student&&)
foo.cpp:7:7: note: candidate expects 1 argument, 6 provided