QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#622767 | #9427. Collect the Coins | ucup-team3502 | Compile Error | / | / | C++23 | 1.6kb | 2024-10-09 04:22:45 | 2024-10-09 04:22:47 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In lambda function: answer.code:29:14: error: cannot decompose non-array non-class type ‘long long int’ 29 | for(auto [t, v] : e) { | ^~~~~~ In file included from /usr/include/c++/13/vector:65, from /usr/include/c++/13/functional:64, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53, from answer.code:1: /usr/include/c++/13/bits/stl_uninitialized.h: In instantiation of ‘constexpr _ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = _Rb_tree_iterator<pair<const long long int, vector<long long int> > >; _ForwardIterator = long long int*; _Allocator = vector<long long int>]’: /usr/include/c++/13/bits/stl_vector.h:1692:33: required from ‘constexpr void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Rb_tree_iterator<std::pair<const long long int, std::vector<long long int> > >; _Tp = long long int; _Alloc = std::vector<long long int>]’ /usr/include/c++/13/bits/stl_vector.h:708:23: required from ‘constexpr std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = std::_Rb_tree_iterator<std::pair<const long long int, std::vector<long long int> > >; <template-parameter-2-2> = void; _Tp = long long int; _Alloc = std::vector<long long int>; allocator_type = std::vector<long long int>]’ answer.code:23:54: required from here /usr/include/c++/13/bits/stl_uninitialized.h:352:32: error: no matching function for call to ‘__gnu_cxx::__alloc_traits<std::vector<long long int>, long long int>::construct(std::vector<long long int>&, long long int*, std::pair<const long long int, std::vector<long long int> >&)’ 352 | __traits::construct(__alloc, std::__addressof(*__cur), *__first); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/ext/alloc_traits.h:34, from /usr/include/c++/13/bits/basic_string.h:39, from /usr/include/c++/13/string:54, from /usr/include/c++/13/bitset:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52: /usr/include/c++/13/bits/alloc_traits.h:375:9: note: candidate: ‘template<class _Tp, class ... _Args> static constexpr decltype (std::allocator_traits< <template-parameter-1-1> >::_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits< <template-parameter-1-1> >::construct::__args)...)) std::allocator_traits< <template-parameter-1-1> >::construct(_Alloc&, _Tp*, _Args&& ...) [with _Args = _Tp; _Alloc = std::vector<long long int>]’ 375 | construct(_Alloc& __a, _Tp* __p, _Args&&... __args) | ^~~~~~~~~ /usr/include/c++/13/bits/alloc_traits.h:375:9: note: template argument deduction/substitution failed: /usr/include/c++/13/bits/alloc_traits.h: In substitution of ‘template<class _Tp, class ... _Args> static constexpr decltype (std::allocator_traits<std::vector<long long int> >::_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits< <template-parameter-1-1> >::construct::__args)...)) std::allocator_traits<std::vector<long long int> >::construct(std::vector<long long int>&, _Tp*, _Args&& ...) [with _Tp = long long int; _Args = {std::pair<const long long int, std::vector<long long int, std::allocator<long long int> > >&}]’: /usr/include/c++/13/bits/stl_uninitialized.h:352:25: required from ‘constexpr _ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = _Rb_tree_iterator<pair<const long long int, vector<long long int> > >; _ForwardIterator = long long int*; _Allocator = vector<long long int>]’ /usr/include/c++/13/bits/stl_vector.h:1692:33: required from ‘constexpr void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Rb_tree_iterator<std::pair<const long long int, std::vector<long long int> > >; _Tp = long long int; _Alloc = std::vector<long long int>]’ /usr/include/c++/13/bits/stl_vector.h:708:23: required from ‘constexpr std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = std::_Rb_tree_iterator<std::pair<const long long int, std::vector<long long int> > >; <template-parameter-2-2> = void; _Tp = long long int; _Alloc = std::vector<long long int>; allocator_type = std::vector<long long int>]’ answer.code:23:54: required from here /usr/include/c++/13/bits/alloc_traits.h:378:33: error: no matching function for call to ‘std::allocator_traits<std::vector<long long int> >::_S_construct(std::vector<long long int>&, long long int*&, std::pair<const long long int, std::vector<long long int> >&)’ 378 | -> decltype(_S_construct(__a, __p, std::forward<_Args>(__arg...