Record Detail

Compile Error

In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp:364:22: error: 'vIterator_t' was not declared in this scope
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                      ^~~~~~~~~~~
/in/kdtree.hpp:364:22: note: suggested alternative: 'Iterator'
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                      ^~~~~~~~~~~
                      Iterator
/in/kdtree.hpp:364:40: error: 'vIterator_t' was not declared in this scope
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                                        ^~~~~~~~~~~
/in/kdtree.hpp:364:40: note: suggested alternative: 'Iterator'
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                                        ^~~~~~~~~~~
                                        Iterator
/in/kdtree.hpp:364:64: error: expected primary-expression before '*' token
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                                                                ^
/in/kdtree.hpp:364:65: error: 'dest' was not declared in this scope
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                                                                 ^~~~
/in/kdtree.hpp:364:65: note: suggested alternative: 'dev_t'
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                                                                 ^~~~
                                                                 dev_t
/in/kdtree.hpp:364:70: error: expected ';' before '{' token
     Node *createTree(vIterator_t left, vIterator_t right, Node *dest){
                                                                      ^
/in/kdtree.hpp:377:5: error: data member 'createTree' 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:412:16: error: 'createTree' was not declared in this scope
         root = createTree<0>(v.begin(), v.end(), nullptr);
                ^~~~~~~~~~
/in/kdtree.hpp:412:16: note: suggested alternative: 'deleteTree'
         root = createTree<0>(v.begin(), v.end(), nullptr);
                ^~~~~~~~~~
                deleteTree

Information

Submit By
Type
Submission
Homework
Project 3: K-D tree
Language
C++
Submit At
2022-11-29 15:28:50
Judged At
2022-11-29 15:28:50
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes