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>::find(const Key&, KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [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:560:38: required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Iterator KDTree<std::tuple<_Elements ...>, ValueType>::find(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:118:38: required from here
/in/kdtree.hpp:209:9: error: no matching function for call to 'KDTree<std::tuple<int, int, int>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::cmp<0>(const Key&, const Key&)'
if(this->cmp<DIM>(key, node->key()))return find<DIM_NEXT>(key, node->left);
^~
/in/kdtree.hpp:437:17: note: candidate: template<long unsigned int DIM> static bool KDTree<std::tuple<_Elements ...>, ValueType>::cmp(std::pair<std::tuple<_Elements ...>, ValueType>, std::pair<std::tuple<_Elements ...>, ValueType>) [with long unsigned int DIM = DIM; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]
static bool cmp(std::pair<Key, Value> x, std::pair<Key, Value> y){
^~~
/in/kdtree.hpp:437:17: note: template argument deduction/substitution failed:
/in/kdtree.hpp:209:9: note: cannot convert 'key' (type 'const Key {aka const std::tuple<int, int, int>}') to type 'std::pair<std::tuple<int, int, int>, std::__cxx11::basic_string<char> >'
if(this->cmp<DIM>(key, node->key()))return find<DIM_NEXT>(key, node->left);
^~
/in/kdtree.hpp: In member function 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::find(const Key&, KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:212:5: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors