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>::KDTree(std::vector<std::pair<std::tuple<_Elements ...>, ValueType> >) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/driver/main.cpp:43:57:   required from here
/in/kdtree.hpp:434:19: error: 'del_helper' was not declared in this scope
         del_helper(this->root);
         ~~~~~~~~~~^~~~~~~~~~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::~KDTree() [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/driver/main.cpp:43:57:   required from here
/in/kdtree.hpp:468:19: error: 'del_helper' was not declared in this scope
         del_helper(this->root);
         ~~~~~~~~~~^~~~~~~~~~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>& KDTree<std::tuple<_Elements ...>, ValueType>::operator=(const KDTree<std::tuple<_Elements ...>, ValueType>&) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/driver/main.cpp:146:23:   required from here
/in/kdtree.hpp:456:23: error: 'del_helper' was not declared in this scope
             del_helper(this->root);
             ~~~~~~~~~~^~~~~~~~~~~~
/in/kdtree.hpp:457:37: error: 'copy_helper' was not declared in this scope
             this->root = copy_helper(nullptr, that.root);
                          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/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:510: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:367:28: error: use of deleted function 'std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >& std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >::operator=(const std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >&)'
                 node->data = minNode->data;
                 ~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/utility:70:0,
                 from /usr/include/c++/7/tuple:38,
                 from /in/kdtree.hpp:1,
                 from /in/driver/main.cpp:8:
/usr/include/c++/7/bits/stl_pair.h:208:12: note: 'std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >& std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >::operator=(const std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >&)' is implicitly declared as deleted because 'std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >' declares a move constructor or move assignment operator
     struct pair
            ^~~~
In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp:372:28: error: use of deleted function 'std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >& std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >::operator=(const std::pair<const std::tuple<int, int, int>, std::__cxx11::basic_string<char> >&)'
                 node->data = maxNode->data;
                 ~~~~~~~~~~~^~~~~~~~~~~~~~~

Information

Submit By
Type
Submission
Homework
Project 3
Language
C++
Submit At
2024-07-24 23:06:53
Judged At
2024-07-24 23:06:53
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes