Record Detail

Compile Error

In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp: In member function 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::KDTreeConstructorHelper(std::vector<std::pair<std::tuple<_Elements ...>, ValueType> >, int, int, KDTree<std::tuple<_Elements ...>, ValueType>::Node*)':
/in/kdtree.hpp:438:44: error: 'left' was not declared in this scope
         std::nth_element(v.begin()+begin + left, v.begin() + median, v.begin() + end, compareData<DIM, std::less<>>);
                                            ^~~~
/in/kdtree.hpp:442:9: error: 'node' was not declared in this scope
         node->left = KDTreeConstructorHelper<DIM_NEXT>(v, begin, median, newNode);
         ^~~~
/in/kdtree.hpp:442:9: note: suggested alternative: 'Node'
         node->left = KDTreeConstructorHelper<DIM_NEXT>(v, begin, median, newNode);
         ^~~~
         Node

Information

Submit By
Type
Submission
Homework
Project 3: K-D tree
Language
C++
Submit At
2023-11-25 12:36:55
Judged At
2023-11-25 12:36:55
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes