Record Detail

Compile Error

In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp: In instantiation of 'static bool KDTree<std::tuple<_Elements ...>, ValueType>::myPred(const std::pair<std::tuple<_Elements ...>, ValueType>&, const std::pair<std::tuple<_Elements ...>, ValueType>&) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:450:32:   required from '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:407:24: error: 'keyEqual' was not declared in this scope
         return keyEqual(a.first,b.first);
                ~~~~~~~~^~~~~~~~~~~~~~~~~
/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:524: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:08:23
Judged At
2024-07-24 23:08:23
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes