Record Detail

Compile Error

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>::constructor_helper(std::vector<std::pair<std::tuple<_Elements ...>, ValueType> >, int, int, KDTree<std::tuple<_Elements ...>, ValueType>::Node*)':
/in/kdtree.hpp:362:117: error: 'lhs' was not declared in this scope
             std::nth_element(v.begin() + left, v.begin() + mid, v.begin() + right + 1, compareKey<DIM, std::less<>>(lhs.first, rhs.first));//get the midian according to DIM
                                                                                                                     ^~~
/in/kdtree.hpp:362:117: note: suggested alternative: 'labs'
             std::nth_element(v.begin() + left, v.begin() + mid, v.begin() + right + 1, compareKey<DIM, std::less<>>(lhs.first, rhs.first));//get the midian according to DIM
                                                                                                                     ^~~
                                                                                                                     labs
In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp:362:128: error: 'rhs' was not declared in this scope
             std::nth_element(v.begin() + left, v.begin() + mid, v.begin() + right + 1, compareKey<DIM, std::less<>>(lhs.first, rhs.first));//get the midian according to DIM
                                                                                                                                ^~~

Information

Submit By
Type
Submission
Homework
Project 3
Language
C++
Submit At
2021-11-21 15:36:03
Judged At
2021-11-21 15:36:03
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes