Record Detail

Compile Error

/in/main.cpp:197:37: error: use of undeclared identifier 'INT_MAX'
        int player_to_nearest_box = INT_MAX;
                                    ^
/in/main.cpp:210:40: error: invalid operands to binary expression ('void' and 'void')
        return dist(a.first, a.second) > dist(b.first, b.second);
               ~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
In file included from /in/main.cpp:1:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/unordered_map:41:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/tuple:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/stdexcept:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/string:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/char_traits.h:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_algobase.h:71:
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/predefined_ops.h:143:18: error: functional-style cast from 'void' to 'bool' is not allowed
        { return bool(_M_comp(*__it1, *__it2)); }
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_heap.h:222:8: note: in instantiation of function template specialization '__gnu_cxx::__ops::_Iter_comp_iter<(lambda at /in/main.cpp:209:16)>::operator()<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, __gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > > >' requested here
          if (__comp(__first + __secondChild,
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_heap.h:342:9: note: in instantiation of function template specialization 'std::__adjust_heap<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, long, std::pair<int, unsigned long long>, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at /in/main.cpp:209:16)> >' requested here
          std::__adjust_heap(__first, __parent, __len, _GLIBCXX_MOVE(__value),
               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_heap.h:397:12: note: in instantiation of function template specialization 'std::__make_heap<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at /in/main.cpp:209:16)> >' requested here
      std::__make_heap(__first, __last, __cmp);
           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_queue.h:484:14: note: in instantiation of function template specialization 'std::make_heap<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, (lambda at /in/main.cpp:209:16)>' requested here
      { std::make_heap(c.begin(), c.end(), comp); }
             ^
/in/main.cpp:212:105: note: in instantiation of member function 'std::priority_queue<std::pair<int, unsigned long long>, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > >, (lambda at /in/main.cpp:209:16)>::priority_queue' requested here
    std::priority_queue<std::pair<int, BoxState>, std::vector<std::pair<int, BoxState>>, decltype(cmp)> q(cmp);
                                                                                                        ^
In file included from /in/main.cpp:1:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/unordered_map:41:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/tuple:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/stdexcept:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/string:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/char_traits.h:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_algobase.h:71:
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/predefined_ops.h:177:11: error: functional-style cast from 'void' to 'bool' is not allowed
        { return bool(_M_comp(*__it, __val)); }
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_heap.h:133:42: note: in instantiation of function template specialization '__gnu_cxx::__ops::_Iter_comp_val<(lambda at /in/main.cpp:209:16)>::operator()<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, std::pair<int, unsigned long long> >' requested here
      while (__holeIndex > __topIndex && __comp(__first + __parent, __value))
                                         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_heap.h:237:12: note: in instantiation of function template specialization 'std::__push_heap<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, long, std::pair<int, unsigned long long>, __gnu_cxx::__ops::_Iter_comp_val<(lambda at /in/main.cpp:209:16)> >' requested here
      std::__push_heap(__first, __holeIndex, __topIndex,
           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_heap.h:342:9: note: in instantiation of function template specialization 'std::__adjust_heap<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, long, std::pair<int, unsigned long long>, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at /in/main.cpp:209:16)> >' requested here
          std::__adjust_heap(__first, __parent, __len, _GLIBCXX_MOVE(__value),
               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_heap.h:397:12: note: in instantiation of function template specialization 'std::__make_heap<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at /in/main.cpp:209:16)> >' requested here
      std::__make_heap(__first, __last, __cmp);
           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_queue.h:484:14: note: in instantiation of function template specialization 'std::make_heap<__gnu_cxx::__normal_iterator<std::pair<int, unsigned long long> *, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > > >, (lambda at /in/main.cpp:209:16)>' requested here
      { std::make_heap(c.begin(), c.end(), comp); }
             ^
/in/main.cpp:212:105: note: in instantiation of member function 'std::priority_queue<std::pair<int, unsigned long long>, std::vector<std::pair<int, unsigned long long>, std::allocator<std::pair<int, unsigned long long> > >, (lambda at /in/main.cpp:209:16)>::priority_queue' requested here
    std::priority_queue<std::pair<int, BoxState>, std::vector<std::pair<int, BoxState>>, decltype(cmp)> q(cmp);
                                                                                                        ^
4 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1

Information

Submit By
Type
Submission
Language
C++
Submit At
2024-11-11 19:43:40
Judged At
2024-11-11 19:43:40
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes