/ Vijos /

记录详情

Compile Error

foo.cpp:17:20: error: expected ')' before 'name'
     Student(stirng 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 function 'int main()':
foo.cpp:55:86: error: no matching function for call to 'Student::Student(std::string&, int&, int&, char&, char&, int&)'
         Student *s = new Student(name, finalScore, classScore, cadre, fromWest, paper);
                                                                                      ^
foo.cpp:55: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

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2015-09-17 15:18:45
评测时间
2015-09-17 15:18:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes