Record Detail

Compile Error

In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::erase(KDTree<std::tuple<_Elements ...>, ValueType>::Node*, const Key&) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; KDTree<std::tuple<_Elements ...>, ValueType>::Key = std::tuple<int, int, int>]':
/in/kdtree.hpp:580:17:   required from 'bool KDTree<std::tuple<_Elements ...>, ValueType>::erase(const Key&) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; KDTree<std::tuple<_Elements ...>, ValueType>::Key = std::tuple<int, int, int>]'
/in/driver/main.cpp:105:33:   required from here
/in/kdtree.hpp:323:27: error: 'isLeaf' was not declared in this scope
                 if (isLeaf(node)) {
                     ~~~~~~^~~~~~
/in/kdtree.hpp:327:38: error: 'isLeftChd' was not declared in this scope
                         if (isLeftChd(node, node->parent)) node->parent->left = nullptr;
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/kdtree.hpp:328:39: error: 'isRightChd' was not declared in this scope
                         if (isRightChd(node, node->parent)) node->parent->right = nullptr;
                             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/kdtree.hpp:328:39: note: suggested alternative: 'isdigit_l'
                         if (isRightChd(node, node->parent)) node->parent->right = nullptr;
                             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
                             isdigit_l

Information

Submit By
Type
Submission
Homework
Project 3: K-D tree
Language
C++
Submit At
2022-11-23 23:47:52
Judged At
2022-11-23 23:47:52
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes