Record Detail

Compile Error

/in/p2.cpp: In function 'bool tree_hasMonotonicPath(tree_t)':
/in/p2.cpp:290:12: error: 'tree_MonoInc_helper' was not declared in this scope
     return tree_MonoInc_helper(tree) || tree_MonoDec_helper(tree);
            ^~~~~~~~~~~~~~~~~~~
/in/p2.cpp:290:12: note: suggested alternative: 'tree_max_helper'
     return tree_MonoInc_helper(tree) || tree_MonoDec_helper(tree);
            ^~~~~~~~~~~~~~~~~~~
            tree_max_helper
/in/p2.cpp:290:41: error: 'tree_MonoDec_helper' was not declared in this scope
     return tree_MonoInc_helper(tree) || tree_MonoDec_helper(tree);
                                         ^~~~~~~~~~~~~~~~~~~
/in/p2.cpp:290:41: note: suggested alternative: 'tree_max_helper'
     return tree_MonoInc_helper(tree) || tree_MonoDec_helper(tree);
                                         ^~~~~~~~~~~~~~~~~~~
                                         tree_max_helper
/in/p2.cpp: In function 'bool tree_allPathSumGreater(tree_t, int)':
/in/p2.cpp:327:12: error: 'tree_PSSmaller_helper' was not declared in this scope
     return tree_PSSmaller_helper(tree, sum) ? false : true;
            ^~~~~~~~~~~~~~~~~~~~~
/in/p2.cpp:327:12: note: suggested alternative: 'tree_max_helper'
     return tree_PSSmaller_helper(tree, sum) ? false : true;
            ^~~~~~~~~~~~~~~~~~~~~
            tree_max_helper

Information

Submit By
Type
Submission
Homework
Project 2
Language
C++
Submit At
2024-10-30 11:57:51
Judged At
2024-10-30 11:57:51
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes