Record Detail

Compile Error

/in/ex6.cpp: In member function 'TreeNode* BinaryTree::copy(TreeNode*)':
/in/ex6.cpp:83:22: error: return-statement with no value, in function returning 'TreeNode*' [-fpermissive]
     if(root==nullptr)return;
                      ^~~~~~
/in/compile/Makefile:69: recipe for target 'ex6.o' failed
make: *** [ex6.o] Error 1

Information

Submit By
Type
Submission
Homework
Exercise 6
Language
C++
Submit At
2024-12-22 20:15:58
Judged At
2024-12-22 20:15:58
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes