Record Detail

Compile Error

In file included from /in/Compile/BinarySearchTree_compile_check.cpp:4:0:
/in/BinarySearchTree.h: In static member function 'static bool BinarySearchTree<T, Compare>::check_sorting_invariant_impl(const BinarySearchTree<T, Compare>::Node*, Compare)':
/in/BinarySearchTree.h:477:75: error: a function-definition is not allowed here before '{' token
  static bool check_sorting_invariant_impl(const Node *node, Compare less) {
                                                                           ^
/in/BinarySearchTree.h:502:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
cc1plus: all warnings being treated as errors
/in/Compile/Makefile:30: recipe for target 'BinarySearchTree_compile_check.exe' failed
make: *** [BinarySearchTree_compile_check.exe] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2024-07-06 23:21:31
Judged At
2024-07-06 23:21:31
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes