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>::findMin(KDTree<std::tuple<_Elements ...>, ValueType>::Node*) [with long unsigned int DIM_CMP = 0; long unsigned int DIM = 2; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:254:19: error: 'min' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             Node *min = compareNode<DIM_CMP, std::less<>>(min, findMin<DIM_CMP, DIM_NEXT>(node->right));
                   ^~~
/in/kdtree.hpp: In member function '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 = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:254:19: error: 'min' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             Node *min = compareNode<DIM_CMP, std::less<>>(min, findMin<DIM_CMP, DIM_NEXT>(node->right));
                   ^~~
/in/kdtree.hpp: In member function '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 = 2; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:254:19: error: 'min' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             Node *min = compareNode<DIM_CMP, std::less<>>(min, findMin<DIM_CMP, DIM_NEXT>(node->right));
                   ^~~
/in/kdtree.hpp: In member function '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:254:19: error: 'min' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             Node *min = compareNode<DIM_CMP, std::less<>>(min, findMin<DIM_CMP, DIM_NEXT>(node->right));
                   ^~~
/in/kdtree.hpp: In member function '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 = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:254:19: error: 'min' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             Node *min = compareNode<DIM_CMP, std::less<>>(min, findMin<DIM_CMP, DIM_NEXT>(node->right));
                   ^~~
/in/kdtree.hpp: In member function '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:254:19: error: 'min' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             Node *min = compareNode<DIM_CMP, std::less<>>(min, findMin<DIM_CMP, DIM_NEXT>(node->right));
                   ^~~
/in/kdtree.hpp: In member function '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 = 2; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:288:23: error: 'max' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 Node *max = compareNode<DIM_CMP, std::greater<>>(max, findMax<DIM_CMP, DIM_NEXT>(node->left));
                       ^~~
/in/kdtree.hpp: In member function '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 = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:288:23: error: 'max' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 Node *max = compareNode<DIM_CMP, std::greater<>>(max, findMax<DIM_CMP, DIM_NEXT>(node->left));
                       ^~~
/in/kdtree.hpp: In member function '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 = 2; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:288:23: error: 'max' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 Node *max = compareNode<DIM_CMP, std::greater<>>(max, findMax<DIM_CMP, DIM_NEXT>(node->left));
                       ^~~
/in/kdtree.hpp: In member function '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:288:23: error: 'max' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 Node *max = compareNode<DIM_CMP, std::greater<>>(max, findMax<DIM_CMP, DIM_NEXT>(node->left));
                       ^~~
/in/kdtree.hpp: In member function '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 = 1; ValueType = std::__cxx11::basic_string<char>; KeyTypes = {int, int, int}]':
/in/kdtree.hpp:288:23: error: 'max' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 Node *max = compareNode<DIM_CMP, std::greater<>>(max, findMax<DIM_CMP, DIM_NEXT>(node->left));
                       ^~~
/in/kdtree.hpp: In member function '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:288:23: error: 'max' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 Node *max = compareNode<DIM_CMP, std::greater<>>(max, findMax<DIM_CMP, DIM_NEXT>(node->left));
                       ^~~
cc1plus: all warnings being treated as errors

Information

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