Record Detail

Compile Error

/in/node.cpp:17:34: error: default argument given for parameter 2 of 'Node::Node(int, int)' [-fpermissive]
 Node::Node(int _value, int _n = 2){
                                  ^
In file included from /in/node.cpp:1:0:
/in/node.h:23:5: note: previous specification in 'Node::Node(int, int)' here
     Node(int _value, int _n = 2);
     ^~~~
/in/node.cpp: In member function 'bool Node::contain(Node*)':
/in/node.cpp:50:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
/in/node.cpp: In member function 'Node& Node::operator[](int)':
/in/node.cpp:60:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Lab Eight: Dynamic Memory Allocation
Language
C++
Submit At
2022-07-15 19:40:39
Judged At
2022-07-15 19:40:39
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes