Record Detail

Compile Error

In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp:359:30: error: 'InitVec' has not been declared
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                              ^~~~~~~
/in/kdtree.hpp:359:48: error: expected '(' before 'l'
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                                                ^
/in/kdtree.hpp:359:60: error: 'InitVec' has not been declared
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                                                            ^~~~~~~
/in/kdtree.hpp:359:78: error: expected '(' before 'r'
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                                                                              ^
/in/kdtree.hpp:359:86: error: expected primary-expression before '*' token
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                                                                                      ^
/in/kdtree.hpp:359:87: error: 'parent' was not declared in this scope
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                                                                                       ^~~~~~
/in/kdtree.hpp:359:87: note: suggested alternative: 'popen'
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                                                                                       ^~~~~~
                                                                                       popen
/in/kdtree.hpp:359:95: error: expected ';' before '{' token
     Node *buildTree(typename InitVec::iterator l, typename InitVec::iterator r, Node *parent) {
                                                                                               ^
/in/kdtree.hpp:370:5: error: data member 'buildTree' cannot be a member template
     }
     ^
/in/kdtree.hpp: In constructor 'KDTree<std::tuple<_Elements ...>, ValueType>::KDTree(std::vector<std::pair<std::tuple<_Elements ...>, ValueType> >)':
/in/kdtree.hpp:401:16: error: 'buildTree' was not declared in this scope
         root = buildTree<0>(v.begin(), v.end(), nullptr);
                ^~~~~~~~~

Information

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