Замечания
Код не собирается
/home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp: In function ‘BinaryTreeNode* Find(BinaryTreeNode*, int)’:
/home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp:16:56: error: no matching function for call to ‘std::exception::exception(const char [16])’
16 | throw std::exception("Does not exist\n");
| ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/exception:38,
from /home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:69:5: note: candidate: ‘constexpr std::exception::exception(std::exception&&)’
69 | exception(exception&&) = default;
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:69:15: note: no known conversion for argument 1 from ‘const char [16]’ to ‘std::exception&&’
69 | exception(exception&&) = default;
| ^~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:67:5: note: candidate: ‘constexpr std::exception::exception(const std::exception&)’
67 | exception(const exception&) = default;
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:67:15: note: no known conversion for argument 1 from ‘const char [16]’ to ‘const std::exception&’
67 | exception(const exception&) = default;
| ^~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:64:5: note: candidate: ‘std::exception::exception()’
64 | exception() _GLIBCXX_NOTHROW { }
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:64:5: note: candidate expects 0 arguments, 1 provided
/home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp: In function ‘BinaryTreeNode* FindMinimal(BinaryTreeNode*)’:
/home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp:37:56: error: no matching function for call to ‘std::exception::exception(const char [16])’
37 | throw std::exception("Does not exist\n");
| ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/exception:38,
from /home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:69:5: note: candidate: ‘constexpr std::exception::exception(std::exception&&)’
69 | exception(exception&&) = default;
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:69:15: note: no known conversion for argument 1 from ‘const char [16]’ to ‘std::exception&&’
69 | exception(exception&&) = default;
| ^~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:67:5: note: candidate: ‘constexpr std::exception::exception(const std::exception&)’
67 | exception(const exception&) = default;
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:67:15: note: no known conversion for argument 1 from ‘const char [16]’ to ‘const std::exception&’
67 | exception(const exception&) = default;
| ^~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:64:5: note: candidate: ‘std::exception::exception()’
64 | exception() _GLIBCXX_NOTHROW { }
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:64:5: note: candidate expects 0 arguments, 1 provided
/home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp: In function ‘BinaryTreeNode* FindMaximal(BinaryTreeNode*)’:
/home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp:53:56: error: no matching function for call to ‘std::exception::exception(const char [16])’
53 | throw std::exception("Does not exist\n");
| ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/exception:38,
from /home/zlt/sirius_tasks/tasktree/src/BinaryTree.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:69:5: note: candidate: ‘constexpr std::exception::exception(std::exception&&)’
69 | exception(exception&&) = default;
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:69:15: note: no known conversion for argument 1 from ‘const char [16]’ to ‘std::exception&&’
69 | exception(exception&&) = default;
| ^~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:67:5: note: candidate: ‘constexpr std::exception::exception(const std::exception&)’
67 | exception(const exception&) = default;
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:67:15: note: no known conversion for argument 1 from ‘const char [16]’ to ‘const std::exception&’
67 | exception(const exception&) = default;
| ^~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:64:5: note: candidate: ‘std::exception::exception()’
64 | exception() _GLIBCXX_NOTHROW { }
| ^~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/exception.h:64:5: note: candidate expects 0 arguments, 1 provided