0_0_28442837_4594.cpp: In function 'int main()':
0_0_28442837_4594.cpp:39:44: error: no matching function for call to 'Node::Node(std::string, int&, int&)'
arr.push_back(Node(toStr(name), i, grade));
^
0_0_28442837_4594.cpp:39:44: note: candidates are:
0_0_28442837_4594.cpp:10:2: note: Node::Node(std::string&, int, int)
Node(string& str, int i, int g) :name(str), id(i), grade(g) { }
^
0_0_28442837_4594.cpp:10:2: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'std::string& {aka std::basic_string<char>&}'
0_0_28442837_4594.cpp:9:2: note: Node::Node()
Node() { }
^
0_0_28442837_4594.cpp:9:2: note: candidate expects 0 arguments, 3 provided
0_0_28442837_4594.cpp:7:7: note: Node::Node(const Node&)
class Node {
^
0_0_28442837_4594.cpp:7:7: note: candidate expects 1 argument, 3 provided
0_0_28442837_4594.cpp:7:7: note: Node::Node(Node&&)
0_0_28442837_4594.cpp:7:7: note: candidate expects 1 argument, 3 provided
|