Record Detail

Compile Error

/in/ex6.cpp: In member function 'bool BinaryTree::equal(TreeNode*, TreeNode*) const':
/in/ex6.cpp:63:18: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
     else if(!root&&other||root&&!other){//just one empty, return false
             ~~~~~^~~~~~~
cc1plus: all warnings being treated as errors
/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-10 23:16:27
Judged At
2024-12-10 23:16:27
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes