Record Detail

Compile Error

In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp: In constructor 'KDTree<std::tuple<_Elements ...>, ValueType>::KDTree(std::vector<std::pair<std::tuple<_Elements ...>, ValueType> >)':
/in/kdtree.hpp:472:13: error: 'v' was not declared in this scope
         if (v.empty())
             ^
/in/kdtree.hpp:476:26: error: 'v' was not declared in this scope
         std::stable_sort(v.begin(), v.end());
                          ^
/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:470:56: error: unused parameter 'elements' [-Werror=unused-parameter]
     explicit KDTree(std::vector<std::pair<Key, Value>> elements) {
                                                        ^~~~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 3
Language
C++
Submit At
2024-07-24 23:53:45
Judged At
2024-07-24 23:53:45
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes