Record Detail

Compile Error

In file included from /in/ex6.cpp:1:0:
/in/ex6.h:48:7: error: extra qualification 'BinaryTree::' on member 'depthHelper' [-fpermissive]
   int BinaryTree::depthHelper(TreeNode* root) const;
       ^~~~~~~~~~
/in/ex6.cpp:58:1: error: redefinition of 'BinaryTree::BinaryTree(const BinaryTree&)'
 BinaryTree::BinaryTree(const BinaryTree& other)
 ^~~~~~~~~~
/in/ex6.cpp:18:1: note: 'BinaryTree::BinaryTree(const BinaryTree&)' previously defined here
 BinaryTree::BinaryTree(const BinaryTree &other)
 ^~~~~~~~~~
/in/ex6.cpp:63:13: error: redefinition of 'BinaryTree& BinaryTree::operator=(const BinaryTree&)'
 BinaryTree& BinaryTree::operator=(const BinaryTree& other)
             ^~~~~~~~~~
/in/ex6.cpp:23:13: note: 'BinaryTree& BinaryTree::operator=(const BinaryTree&)' previously defined here
 BinaryTree& BinaryTree::operator=(const BinaryTree &other)
             ^~~~~~~~~~
/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-20 19:06:58
Judged At
2024-12-23 12:48:15
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes