Record Detail

Compile Error

In file included from /in/driver/main.cpp:8:0:
/in/kdtree.hpp: In member function 'bool KDTree<std::tuple<_Elements ...>, ValueType>::insert(const Key&, const Value&, KDTree<std::tuple<_Elements ...>, ValueType>::Node*&, KDTree<std::tuple<_Elements ...>, ValueType>::Node*)':
/in/kdtree.hpp:153:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/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:271:56: error: unused parameter 'v' [-Werror=unused-parameter]
     explicit KDTree(std::vector<std::pair<Key, Value>> v) {
                                                        ^
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::KDTree(const KDTree<std::tuple<_Elements ...>, ValueType>&) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/driver/main.cpp:145:69:   required from here
/in/kdtree.hpp:278:26: error: unused parameter 'that' [-Werror=unused-parameter]
     KDTree(const KDTree &that) {
                          ^~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>& KDTree<std::tuple<_Elements ...>, ValueType>::operator=(const KDTree<std::tuple<_Elements ...>, ValueType>&) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/driver/main.cpp:146:23:   required from here
/in/kdtree.hpp:287:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:285:37: error: unused parameter 'that' [-Werror=unused-parameter]
     KDTree &operator=(const KDTree &that) {
                                     ^~~~
/in/kdtree.hpp: In instantiation of 'bool KDTree<std::tuple<_Elements ...>, ValueType>::insert(const Key&, const Value&, KDTree<std::tuple<_Elements ...>, ValueType>::Node*&, 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>; KDTree<std::tuple<_Elements ...>, ValueType>::Value = std::__cxx11::basic_string<char>]':
/in/kdtree.hpp:312:18:   required from 'void KDTree<std::tuple<_Elements ...>, ValueType>::insert(const Key&, const Value&) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; KDTree<std::tuple<_Elements ...>, ValueType>::Key = std::tuple<int, int, int>; KDTree<std::tuple<_Elements ...>, ValueType>::Value = std::__cxx11::basic_string<char>]'
/in/driver/main.cpp:65:37:   required from here
/in/kdtree.hpp:151:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:150:28: error: unused parameter 'key' [-Werror=unused-parameter]
     bool insert(const Key &key, const Value &value, Node *&node, Node *parent) {
                            ^~~
/in/kdtree.hpp:150:46: error: unused parameter 'value' [-Werror=unused-parameter]
     bool insert(const Key &key, const Value &value, Node *&node, Node *parent) {
                                              ^~~~~
/in/kdtree.hpp:150:60: error: unused parameter 'node' [-Werror=unused-parameter]
     bool insert(const Key &key, const Value &value, Node *&node, Node *parent) {
                                                            ^~~~
/in/kdtree.hpp:150:72: error: unused parameter 'parent' [-Werror=unused-parameter]
     bool insert(const Key &key, const Value &value, Node *&node, Node *parent) {
                                                                        ^~~~~~
/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:335: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:248:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:250:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:247:23: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *erase(Node *node, const Key &key) {
                       ^~~~
/in/kdtree.hpp:247:40: error: unused parameter 'key' [-Werror=unused-parameter]
     Node *erase(Node *node, const Key &key) {
                                        ^~~
/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:308: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:135:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:137:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:134:27: error: unused parameter 'key' [-Werror=unused-parameter]
     Node *find(const Key &key, Node *node) {
                           ^~~
/in/kdtree.hpp:134:38: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *find(const Key &key, Node *node) {
                                      ^~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMin(KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM_CMP = 0; long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:224:47:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMinDynamic(size_t) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:321:48:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Iterator KDTree<std::tuple<_Elements ...>, ValueType>::findMin(size_t) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/driver/main.cpp:71:46:   required from here
/in/kdtree.hpp:200:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:202:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:199:25: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *findMin(Node *node) {
                         ^~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMax(KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM_CMP = 0; long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:234:47:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMaxDynamic(size_t) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:330:48:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Iterator KDTree<std::tuple<_Elements ...>, ValueType>::findMax(size_t) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/driver/main.cpp:87:46:   required from here
/in/kdtree.hpp:214:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:216:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:213:25: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *findMax(Node *node) {
                         ^~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMin(KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM_CMP = 1; long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:224:47:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMinDynamic(size_t) [with long unsigned int DIM = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:225:40:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMinDynamic(size_t) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:321:48:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Iterator KDTree<std::tuple<_Elements ...>, ValueType>::findMin(size_t) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/driver/main.cpp:71:46:   required from here
/in/kdtree.hpp:200:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:202:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:199:25: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *findMin(Node *node) {
                         ^~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMax(KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM_CMP = 1; long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:234:47:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMaxDynamic(size_t) [with long unsigned int DIM = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:235:40:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMaxDynamic(size_t) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:330:48:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Iterator KDTree<std::tuple<_Elements ...>, ValueType>::findMax(size_t) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/driver/main.cpp:87:46:   required from here
/in/kdtree.hpp:214:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:216:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:213:25: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *findMax(Node *node) {
                         ^~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMin(KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM_CMP = 2; long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:225:40:   recursively required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMinDynamic(size_t) [with long unsigned int DIM = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:225:40:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMinDynamic(size_t) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:321:48:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Iterator KDTree<std::tuple<_Elements ...>, ValueType>::findMin(size_t) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/driver/main.cpp:71:46:   required from here
/in/kdtree.hpp:200:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:202:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:199:25: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *findMin(Node *node) {
                         ^~~~
/in/kdtree.hpp: In instantiation of 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMax(KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM_CMP = 2; long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:235:40:   recursively required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMaxDynamic(size_t) [with long unsigned int DIM = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:235:40:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Node* KDTree<std::tuple<_Elements ...>, ValueType>::findMaxDynamic(size_t) [with long unsigned int DIM = 0; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/kdtree.hpp:330:48:   required from 'KDTree<std::tuple<_Elements ...>, ValueType>::Iterator KDTree<std::tuple<_Elements ...>, ValueType>::findMax(size_t) [with ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}; size_t = long unsigned int]'
/in/driver/main.cpp:87:46:   required from here
/in/kdtree.hpp:214:26: error: unused variable 'DIM_NEXT' [-Werror=unused-variable]
         constexpr size_t DIM_NEXT = (DIM + 1) % KeySize;
                          ^~~~~~~~
/in/kdtree.hpp:216:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
/in/kdtree.hpp:213:25: error: unused parameter 'node' [-Werror=unused-parameter]
     Node *findMax(Node *node) {
                         ^~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 3
Language
C++
Submit At
2024-07-13 13:58:25
Judged At
2024-07-13 13:58:25
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes