Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:25:31: error: invalid use of incomplete type '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<unsigned int, unsigned int, int> > >::value_type {aka class std::tuple<unsigned int, unsigned int, int>}'
       edges[i] = {u, v, weight};
                               ^
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<unsigned int, unsigned int, int> > >::value_type {aka class std::tuple<unsigned int, unsigned int, int>}'
     class tuple;
           ^~~~~
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::bellmanFord(unsigned int)':
/in/shortestP2P.hpp:74:9: error: 'tie' was not declared in this scope
         tie(u, v, weight) = edge;
         ^~~
/in/shortestP2P.hpp:74:9: note: suggested alternative: 'time'
         tie(u, v, weight) = edge;
         ^~~
         time
/in/shortestP2P.hpp:88:7: error: 'tie' was not declared in this scope
       tie(u, v, weight) = edge;
       ^~~
/in/shortestP2P.hpp:88:7: note: suggested alternative: 'time'
       tie(u, v, weight) = edge;
       ^~~
       time
In file included from /usr/include/c++/7/vector:64:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]':
/in/shortestP2P.hpp:18:26:   required from here
/usr/include/c++/7/bits/stl_vector.h:694:43: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
    _M_erase_at_end(this->_M_impl._M_start + __new_size);
                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:64:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >; std::vector<_Tp, _Alloc>::reference = std::tuple<unsigned int, unsigned int, int>&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]':
/in/shortestP2P.hpp:25:14:   required from here
/usr/include/c++/7/bits/stl_vector.h:798:34: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
  return *(this->_M_impl._M_start + __n);
          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of '__gnu_cxx::__normal_iterator<_Iterator, _Container>& __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++() [with _Iterator = std::tuple<unsigned int, unsigned int, int>*; _Container = std::vector<std::tuple<unsigned int, unsigned int, int> >]':
/in/shortestP2P.hpp:70:31:   required from here
/usr/include/c++/7/bits/stl_iterator.h:805:2: error: cannot increment a pointer to incomplete type 'std::tuple<unsigned int, unsigned int, int>'
  ++_M_current;
  ^~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >]':
/usr/include/c++/7/bits/stl_vector.h:263:15:   required from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >]'
/in/shortestP2P.hpp:13:17:   required from here
/usr/include/c++/7/bits/stl_vector.h:163:9: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
       { _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         - this->_M_impl._M_start); }
         ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:64:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]':
/usr/include/c++/7/bits/stl_vector.h:691:23:   required from 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
/in/shortestP2P.hpp:18:26:   required from here
/usr/include/c++/7/bits/stl_vector.h:671:50: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
       { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
                          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc: In instantiation of 'void std::vector<_Tp, _Alloc>::_M_default_append(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]':
/usr/include/c++/7/bits/stl_vector.h:692:21:   required from 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
/in/shortestP2P.hpp:18:26:   required from here
/usr/include/c++/7/bits/vector.tcc:560:4: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
    if (size_type(this->_M_impl._M_end_of_storage
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    - this->_M_impl._M_finish) >= __n)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc:575:50: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
     std::__uninitialized_default_n_a(__new_start + __size,
                                      ~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc:577:34: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
     __destroy_from = __new_start + __size;
                      ~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc:585:52: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
       std::_Destroy(__destroy_from, __destroy_from + __n,
                                     ~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc:594:8: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
        this->_M_impl._M_end_of_storage
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        - this->_M_impl._M_start);
        ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc:596:46: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
        this->_M_impl._M_finish = __new_start + __size + __n;
                                  ~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc:596:55: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
        this->_M_impl._M_finish = __new_start + __size + __n;
                                  ~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/vector.tcc:597:54: error: invalid use of incomplete type 'class std::tuple<unsigned int, unsigned int, int>'
        this->_M_impl._M_end_of_storage = __new_start + __len;
                                          ~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'class std::tuple<unsigned int, unsigned int, int>'
     class tuple;
           ^~~~~
In file included from /usr/include/c++/7/vector:62:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_construct.h: In instantiation of 'void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = std::tuple<unsigned int, unsigned int, int>*]':
/usr/include/c++/7/bits/stl_construct.h:206:15:   required from 'void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = std::tuple<unsigned int, unsigned int, int>*; _Tp = std::tuple<unsigned int, unsigned int, int>]'
/usr/include/c++/7/bits/stl_vector.h:434:22:   required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::tuple<unsigned int, unsigned int, int>; _Alloc = std::allocator<std::tuple<unsigned int, unsigned int, int> >]'
/in/shortestP2P.hpp:13:17:   required from here
/usr/include/c++/7/bits/stl_construct.h:133:7: error: static assertion failed: value type is destructible
       static_assert(is_destructible<_Value_type>::value,
       ^~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_construct.h:137:11: error: invalid use of incomplete type 'std::iterator_traits<std::tuple<unsigned int, unsigned int, int>*>::value_type {aka class std::tuple<unsigned int, unsigned int, int>}'
       std::_Destroy_aux<__has_trivial_destructor(_Value_type)>::
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  __destroy(__first, __last);
  ~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/nested_exception.h:40,
                 from /usr/include/c++/7/exception:143,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/type_traits:2560:11: note: declaration of 'std::iterator_traits<std::tuple<unsigned int, unsigned int, int>*>::value_type {aka class std::tuple<unsigned int, unsigned int, int>}'
     class tuple;
           ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
                 from /usr/include/c++/7/bits/allocator.h:46,
                 from /usr/include/c++/7/string:41,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/shortestP2P.hpp:1,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::deallocate(__gnu_cxx::new_allocator<_Tp>::pointer, __gnu_cxx::new_allocator<_Tp>::size_type) [with _Tp = std::tuple<unsigned int, unsigned int, int>; __gnu_cxx::new_allocator<_Tp>::pointer = std::tuple<unsigned int, unsigned int, int>*; __gnu_cxx::new_allocator<_Tp>::size_type = long unsigned int]':
/usr/include/c++/7/bits/alloc_traits.h:462:9:   required from 'static void std::allocator_traits<std::allocator<_CharT> >::deallocate(std::

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-08-09 16:16:45
Judged At
2024-08-09 16:16:45
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes