In file included from /in/driver/main.cpp:8:0:
/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:528: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;
~~~~~~~~~~~^~~~~~~~~~~~~~~