실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:47:30: error: ‘get’ was not declared in this scope; did you mean ‘getw’? 47 | int64 cost = get<0>(line); | ^~~~~~ | getw In file included from /usr/include/c++/11/vector:67, from Main.cpp:2: /usr/include/c++/11/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >]’: /usr/include/c++/11/bits/stl_vector.h:487:7: required from ‘std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue() [with _Seq = std::vector<std::tuple<long long int, int, int> >; _Requires = void; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:9:49: required from here /usr/include/c++/11/bits/stl_vector.h:336:49: error: invalid use of incomplete type ‘class std::tuple<long long int, int, int>’ 336 | _M_impl._M_end_of_storage - _M_impl._M_start); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits:45:11: note: declaration of ‘class std::tuple<long long int, int, int>’ 45 | class tuple; | ^~~~~ /usr/include/c++/11/type_traits: In substitution of ‘template<class _Tp, class ... _Args> using __is_nothrow_constructible_impl = std::__bool_constant<__is_nothrow_constructible(_Tp)> [with _Tp = std::tuple<long long int, int, int>; _Args = {long long int&, int&, int&}]’: /usr/include/c++/11/type_traits:1022:12: required from ‘struct std::is_nothrow_constructible<std::tuple<long long int, int, int>, long long int&, int&, int&>’ /usr/include/c++/11/bits/alloc_traits.h:513:57: required from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple<long long int, int, int>; _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >; std::vector<_Tp, _Alloc>::reference = std::tuple<long long int, int, int>&]’ /usr/include/c++/11/bits/stl_queue.h:658:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/type_traits:1017:25: error: invalid use of incomplete type ‘class std::tuple<long long int, int, int>’ 1017 | = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/type_traits:45:11: note: declaration of ‘class std::tuple<long long int, int, int>’ 45 | class tuple; | ^~~~~ /usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_nothrow_constructible<std::tuple<long long int, int, int>, long long int&, int&, int&>’: /usr/include/c++/11/bits/alloc_traits.h:513:57: required from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple<long long int, int, int>; _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >; std::vector<_Tp, _Alloc>::reference = std::tuple<long long int, int, int>&]’ /usr/include/c++/11/bits/stl_queue.h:658:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/type_traits:1025:52: error: static assertion failed: template argument must be a complete class or an unbounded array 1025 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/type_traits:1025:52: note: ‘std::__is_complete_or_unbounded<std::__type_identity<std::tuple<long long int, int, int> > >((std::__type_identity<std::tuple<long long int, int, int> >{}, std::__type_identity<std::tuple<long long int, int, int> >()))’ evaluates to false In file included from /usr/include/c++/11/ext/alloc_traits.h:34, from /usr/include/c++/11/bits/basic_string.h:40, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/alloc_traits.h: In instantiation of ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple<long long int, int, int>; _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<long long int, int, int> >]’: /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >; std::vector<_Tp, _Alloc>::reference = std::tuple<long long int, int, int>&]’ /usr/include/c++/11/bits/stl_queue.h:658:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/bits/alloc_traits.h:513:64: error: ‘value’ is not a member of ‘std::is_nothrow_constructible<std::tuple<long long int, int, int>, long long int&, int&, int&>’ 513 | noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) | ^~~~~ In file included from /usr/include/c++/11/vector:72, from Main.cpp:2: /usr/include/c++/11/bits/vector.tcc: In instantiation of ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >; std::vector<_Tp, _Alloc>::reference = std::tuple<long long int, int, int>&]’: /usr/include/c++/11/bits/stl_queue.h:658:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/bits/vector.tcc:117:29: error: cannot increment a pointer to incomplete type ‘std::tuple<long long int, int, int>’ 117 | ++this->_M_impl._M_finish; | ~~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/11/bits/stl_algo.h:61, from /usr/include/c++/11/string:52, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_heap.h: In instantiation of ‘constexpr void std::push_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::tuple<long long int, int, int>*, std::vector<std::tuple<long long int, int, int> > >; _Compare = std::greater<std::tuple<long long int, int, int> >]’: /usr/include/c++/11/bits/stl_queue.h:659:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/bits/stl_heap.h:214:18: error: ‘_ValueType __value’ has incomplete type 214 | _ValueType __value = _GLIBCXX_MOVE(*(__last - 1)); | ^~~~~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_iterator.h: In instantiation of ‘constexpr typename __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type __gnu_cxx::operator-(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&) [with _Iterator = std::tuple<long long int, int, int>*; _Container = std::vector<std::tuple<long long int, int, int> >; typename __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type = long int]’: /usr/include/c++/11/bits/stl_heap.h:215:55: required from ‘constexpr void std::push_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::tuple<long long int, int, int>*, std::vector<std::tuple<long long int, int, int> > >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:659:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/bits/stl_iterator.h:1271:27: error: invalid use of incomplete type ‘class std::tuple<long long int, int, int>’ 1271 | { return __lhs.base() - __rhs.base(); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits:45:11: note: declaration of ‘class std::tuple<long long int, int, int>’ 45 | class tuple; | ^~~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_iterator.h: In instantiation of ‘constexpr __gnu_cxx::__normal_iterator<_Iterator, _Container>& __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator--() [with _Iterator = std::tuple<long long int, int, int>*; _Container = std::vector<std::tuple<long long int, int, int> >]’: /usr/include/c++/11/bits/stl_heap.h:331:4: required from ‘constexpr void std::pop_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::tuple<long long int, int, int>*, std::vector<std::tuple<long long int, int, int> > >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:678:15: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:50:12: required from here /usr/include/c++/11/bits/stl_iterator.h:1068:11: error: cannot decrement a pointer to incomplete type ‘std::tuple<long long int, int, int>’ 1068 | --_M_current; | ^~~~~~~~~~ In file included from /usr/include/c++/11/vector:67, from Main.cpp:2: /usr/include/c++/11/bits/stl_vector.h: In instantiation of ‘void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >]’: /usr/include/c++/11/bits/stl_queue.h:679:12: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:50:12: required from here /usr/include/c++/11/bits/stl_vector.h:1228:25: error: cannot decrement a pointer to incomplete type ‘std::tuple<long long int, int, int>’ 1228 | --this->_M_impl._M_finish; | ~~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_nothrow_destructible<std::tuple<long long int, int, int> >’: /usr/include/c++/11/bits/alloc_traits.h:532:41: required from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::destroy(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*) [with _Up = std::tuple<long long int, int, int>; _Tp = std::tuple<long long int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_vector.h:1229:24: required from ‘void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:679:12: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:50:12: required from here /usr/include/c++/11/type_traits:939:52: error: static assertion failed: template argument must be a complete class or an unbounded array 939 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/type_traits:939:52: note: ‘std::__is_complete_or_unbounded<std::__type_identity<std::tuple<long long int, int, int> > >((std::__type_identity<std::tuple<long long int, int, int> >{}, std::__type_identity<std::tuple<long long int, int, int> >()))’ evaluates to false In file included from /usr/include/c++/11/ext/alloc_traits.h:34, from /usr/include/c++/11/bits/basic_string.h:40, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/alloc_traits.h: In instantiation of ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple<long long int, int, int>; _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<long long int, int, int> >]’: /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >; std::vector<_Tp, _Alloc>::reference = std::tuple<long long int, int, int>&]’ /usr/include/c++/11/bits/stl_queue.h:658:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/bits/alloc_traits.h:518:28: error: no matching function for call to ‘construct_at(std::tuple<long long int, int, int>*&, long long int&, int&, int&)’ 518 | std::construct_at(__p, std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/stl_iterator.h:85, from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_construct.h:94:5: note: candidate: ‘template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)’ 94 | construct_at(_Tp* __location, _Args&&... __args) | ^~~~~~~~~~~~ /usr/include/c++/11/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed: /usr/include/c++/11/bits/stl_construct.h: In substitution of ‘template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = std::tuple<long long int, int, int>; _Args = {long long int&, int&, int&}]’: /usr/include/c++/11/bits/alloc_traits.h:518:21: required from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple<long long int, int, int>; _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >; std::vector<_Tp, _Alloc>::reference = std::tuple<long long int, int, int>&]’ /usr/include/c++/11/bits/stl_queue.h:658:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/bits/stl_construct.h:96:17: error: invalid use of incomplete type ‘class std::tuple<long long int, int, int>’ 96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits:45:11: note: declaration of ‘class std::tuple<long long int, int, int>’ 45 | class tuple; | ^~~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_iterator.h: In instantiation of ‘constexpr __gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator-(__gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type) const [with _Iterator = std::tuple<long long int, int, int>*; _Container = std::vector<std::tuple<long long int, int, int> >; __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type = long int]’: /usr/include/c++/11/bits/stl_heap.h:214:28: required from ‘constexpr void std::push_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::tuple<long long int, int, int>*, std::vector<std::tuple<long long int, int, int> > >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:659:18: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {long long int&, int&, int&}; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:36:16: required from here /usr/include/c++/11/bits/stl_iterator.h:1101:45: error: invalid use of incomplete type ‘class std::tuple<long long int, int, int>’ 1101 | { return __normal_iterator(_M_current - __n); } | ~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits:45:11: note: declaration of ‘class std::tuple<long long int, int, int>’ 45 | class tuple; | ^~~~~ In file included from /usr/include/c++/11/bits/stl_algo.h:61, from /usr/include/c++/11/string:52, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_heap.h: In instantiation of ‘constexpr void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::tuple<long long int, int, int>*, std::vector<std::tuple<long long int, int, int> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<std::tuple<long long int, int, int> > >]’: /usr/include/c++/11/bits/stl_heap.h:332:19: required from ‘constexpr void std::pop_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::tuple<long long int, int, int>*, std::vector<std::tuple<long long int, int, int> > >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:678:15: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:50:12: required from here /usr/include/c++/11/bits/stl_heap.h:261:18: error: ‘_ValueType __value’ has incomplete type 261 | _ValueType __value = _GLIBCXX_MOVE(*__result); | ^~~~~~~ /usr/include/c++/11/bits/stl_heap.h:262:17: error: invalid use of incomplete type ‘class std::tuple<long long int, int, int>’ 262 | *__result = _GLIBCXX_MOVE(*__first); | ^ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits:45:11: note: declaration of ‘class std::tuple<long long int, int, int>’ 45 | class tuple; | ^~~~~ /usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_destructible<std::tuple<long long int, int, int> >’: /usr/include/c++/11/bits/stl_construct.h:188:51: required from ‘constexpr void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = std::tuple<long long int, int, int>*]’ /usr/include/c++/11/bits/alloc_traits.h:848:15: required from ‘void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = std::tuple<long long int, int, int>*; _Tp = std::tuple<long long int, int, int>]’ /usr/include/c++/11/bits/stl_vector.h:680:15: required from ‘std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:515:4: required from ‘std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue() [with _Seq = std::vector<std::tuple<long long int, int, int> >; _Requires = void; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:9:49: required from here /usr/include/c++/11/type_traits:885:52: error: static assertion failed: template argument must be a complete class or an unbounded array 885 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/type_traits:885:52: note: ‘std::__is_complete_or_unbounded<std::__type_identity<std::tuple<long long int, int, int> > >((std::__type_identity<std::tuple<long long int, int, int> >{}, std::__type_identity<std::tuple<long long int, int, int> >()))’ evaluates to false In file included from /usr/include/c++/11/bits/stl_iterator.h:85, from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_construct.h: In instantiation of ‘constexpr void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = std::tuple<long long int, int, int>*]’: /usr/include/c++/11/bits/alloc_traits.h:848:15: required from ‘void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = std::tuple<long long int, int, int>*; _Tp = std::tuple<long long int, int, int>]’ /usr/include/c++/11/bits/stl_vector.h:680:15: required from ‘std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:515:4: required from ‘std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue() [with _Seq = std::vector<std::tuple<long long int, int, int> >; _Requires = void; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:9:49: required from here /usr/include/c++/11/bits/stl_construct.h:188:51: error: static assertion failed: value type is destructible 188 | static_assert(is_destructible<_Value_type>::value, | ^~~~~ /usr/include/c++/11/bits/stl_construct.h:188:51: note: ‘std::integral_constant<bool, false>::value’ evaluates to false /usr/include/c++/11/bits/stl_construct.h:195:25: error: invalid use of incomplete type ‘using value_type = std::remove_cv_t<std::tuple<long long int, int, int> >’ {aka ‘class std::tuple<long long int, int, int>’} 195 | std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits:45:11: note: declaration of ‘using value_type = std::remove_cv_t<std::tuple<long long int, int, int> >’ {aka ‘class std::tuple<long long int, int, int>’} 45 | class tuple; | ^~~~~ In file included from /usr/include/c++/11/bits/stl_iterator.h:85, from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_construct.h: In instantiation of ‘constexpr void std::destroy_at(_Tp*) [with _Tp = std::tuple<long long int, int, int>]’: /usr/include/c++/11/bits/alloc_traits.h:537:19: required from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::destroy(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*) [with _Up = std::tuple<long long int, int, int>; _Tp = std::tuple<long long int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_vector.h:1229:24: required from ‘void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:679:12: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:50:12: required from here /usr/include/c++/11/bits/stl_construct.h:88:22: error: invalid use of incomplete type ‘class std::tuple<long long int, int, int>’ 88 | __location->~_Tp(); | ~~~~~~~~~~~~~^~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/type_traits:45:11: note: declaration of ‘class std::tuple<long long int, int, int>’ 45 | class tuple; | ^~~~~ In file included from /usr/include/c++/11/bits/stl_iterator.h:85, from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_construct.h: In instantiation of ‘static constexpr void std::_Destroy_aux<<anonymous> >::__destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = std::tuple<long long int, int, int>*; bool <anonymous> = false]’: /usr/include/c++/11/bits/stl_construct.h:193:39: required from ‘constexpr void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = std::tuple<long long int, int, int>*]’ /usr/include/c++/11/bits/alloc_traits.h:848:15: required from ‘void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = std::tuple<long long int, int, int>*; _Tp = std::tuple<long long int, int, int>]’ /usr/include/c++/11/bits/stl_vector.h:680:15: required from ‘std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::tuple<long long int, int, int>; _Alloc = std::allocator<std::tuple<long long int, int, int> >]’ /usr/include/c++/11/bits/stl_queue.h:515:4: required from ‘std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue() [with _Seq = std::vector<std::tuple<long long int, int, int> >; _Requires = void; _Tp = std::tuple<long long int, int, int>; _Sequence = std::vector<std::tuple<long long int, int, int> >; _Compare = std::greater<std::tuple<long long int, int, int> >]’ Main.cpp:9:49: required from here /usr/include/c++/11/bits/stl_construct.h:162:39: error: cannot increment a pointer to incomplete type ‘std::tuple<long long int, int, int>’ 162 | for (; __first != __last; ++__first) | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.