In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp: In member function 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::TreeInit(std::vector<std::pair<std::tuple<_Elements ...>, ValueType> >, int, int, KDTree<std::tuple<_Elements ...>, ValueType>::Node*)':
/in/kdtree.hpp:494:43: error: 'cmp' was not declared in this scope
std::nth_element(v.begin(), m, v.end(), cmp<DIM>);
^~~
/in/kdtree.hpp:494:51: error: expected primary-expression before ')' token
std::nth_element(v.begin(), m, v.end(), cmp<DIM>);
^
/in/kdtree.hpp:499:43: error: declaration of 'std::vector<std::pair<std::tuple<_Elements ...>, ValueType> > left' shadows a parameter
std::vector<std::pair<Key, Value>> left(v.begin(), m);
^
/in/kdtree.hpp:500:44: error: declaration of 'std::vector<std::pair<std::tuple<_Elements ...>, ValueType> > right' shadows a parameter
std::vector<std::pair<Key, Value>> right(m + 1, v.end());
^
/in/kdtree.hpp: In constructor 'KDTree<std::tuple<_Elements ...>, ValueType>::KDTree(std::vector<std::pair<std::tuple<_Elements ...>, ValueType> >)':
/in/kdtree.hpp:537:36: error: 'cmp' was not declared in this scope
stable_sort(v.begin(), v.end(), cmp<DIM>);
^~~
/in/kdtree.hpp:537:40: error: 'DIM' was not declared in this scope
stable_sort(v.begin(), v.end(), cmp<DIM>);
^~~
/in/kdtree.hpp:537:44: error: expected primary-expression before ')' token
stable_sort(v.begin(), v.end(), cmp<DIM>);
^
/in/kdtree.hpp:538:45: error: 'uniqueRule' was not declared in this scope
auto last = unique(v.rbegin(), v.rend(), uniqueRule);
^~~~~~~~~~
/in/kdtree.hpp:541:11: error: 'initKDTree' was not declared in this scope
root = initKDTree<0>(v, nullptr);
^~~~~~~~~~
/in/kdtree.hpp:541:11: note: suggested alternative: 'KDTree'
root = initKDTree<0>(v, nullptr);
^~~~~~~~~~
KDTree
/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:541:26: error: left operand of comma operator has no effect [-Werror=unused-value]
root = initKDTree<0>(v, nullptr);
~~^~~~~~~~~~
cc1plus: all warnings being treated as errors