In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:50:49: error: no matching function for call to 'std::vector<std::tuple<int, int, int> >::push_back(<brace-enclosed initializer list>)'
edges.push_back({start, end, weight});
^
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:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::vector<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::tuple<int, int, int>&}'
/usr/include/c++/7/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::vector<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::tuple<int, int, int> >::value_type&& {aka std::tuple<int, int, int>&&}'
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::isGraph()':
/in/shortestP2P.hpp:89:21: error: 'tie' was not declared in this scope
tie(u, v, weight) = edge;
^~~
/in/shortestP2P.hpp:89:21: note: suggested alternative: 'time'
tie(u, v, weight) = edge;
^~~
time
/in/shortestP2P.hpp:97:17: error: 'tie' was not declared in this scope
tie(u, v, weight) = edge;
^~~
/in/shortestP2P.hpp:97:17: note: suggested alternative: 'time'
tie(u, v, weight) = edge;
^~~
time
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<int, int, int>*; _Container = std::vector<std::tuple<int, int, int> >]':
/in/shortestP2P.hpp:87:35: required from here
/usr/include/c++/7/bits/stl_iterator.h:805:2: error: cannot increment a pointer to incomplete type 'std::tuple<int, 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<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]':
/usr/include/c++/7/bits/stl_vector.h:263:15: required from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]'
/in/shortestP2P.hpp:13:21: required from here
/usr/include/c++/7/bits/stl_vector.h:163:9: error: invalid use of incomplete type 'class std::tuple<int, 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<int, 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<int, 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<int, int, int>*; _Tp = std::tuple<int, int, int>]'
/usr/include/c++/7/bits/stl_vector.h:434:22: required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]'
/in/shortestP2P.hpp:13:21: 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<int, int, int>*>::value_type {aka class std::tuple<int, 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<int, int, int>*>::value_type {aka class std::tuple<int, 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<int, int, int>; __gnu_cxx::new_allocator<_Tp>::pointer = std::tuple<int, 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::allocator_traits<std::allocator<_CharT> >::allocator_type&, std::allocator_traits<std::allocator<_CharT> >::pointer, std::allocator_traits<std::allocator<_CharT> >::size_type) [with _Tp = std::tuple<int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<int, int, int> >; std::allocator_traits<std::allocator<_CharT> >::pointer = std::tuple<int, int, int>*; std::allocator_traits<std::allocator<_CharT> >::size_type = long unsigned int]'
/usr/include/c++/7/bits/stl_vector.h:180:19: required from 'void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(std::_Vector_base<_Tp, _Alloc>::pointer, std::size_t) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::_Vector_base<_Tp, _Alloc>::pointer = std::tuple<int, int, int>*; std::size_t = long unsigned int]'
/usr/include/c++/7/bits/stl_vector.h:162:22: required from 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]'
/usr/include/c++/7/bits/stl_vector.h:263:15: required from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]'
/in/shortestP2P.hpp:13:21: required from here
/usr/include/c++/7/ext/new_allocator.h:119:19: error: invalid application of '__alignof__' to incomplete type 'std::tuple<int, int, int>'
if (alignof(_Tp) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
/usr/include/c++/7/ext/new_allocator.h:121:34: error: invalid application of '__alignof__' to incomplete type 'std::tuple<int, int, int>'
::operator delete(__p, std::align_val_t(alignof(_Tp)));
^~~~~~~~~~~~~~~~~~~~~~~~~