QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#877604 | #9051. ABC String | MaMengQi | Compile Error | / | / | C++20 | 1.5kb | 2025-01-31 23:39:40 | 2025-01-31 23:39:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In lambda function: answer.code:50:27: error: no matching function for call to ‘begin(std::pair<const long long int, std::vector<long long int> >&)’ 50 | for(auto [v, ide] : hu) { | ^~ In file included from /usr/include/c++/14/bits/algorithmfwd.h:39, from /usr/include/c++/14/bits/stl_algo.h:59, from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/14/initializer_list:88:5: note: candidate: ‘template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)’ 88 | begin(initializer_list<_Tp> __ils) noexcept | ^~~~~ /usr/include/c++/14/initializer_list:88:5: note: template argument deduction/substitution failed: answer.code:50:27: note: ‘std::pair<const long long int, std::vector<long long int> >’ is not derived from ‘std::initializer_list<_Tp>’ 50 | for(auto [v, ide] : hu) { | ^~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/range_access.h:52:5: note: candidate: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)’ 52 | begin(_Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:52:5: note: template argument deduction/substitution failed: /usr/include/c++/14/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&) [with _Container = std::pair<const long long int, std::vector<long long int> >]’: answer.code:50:27: required from here 50 | for(auto [v, ide] : hu) { | ^~ /usr/include/c++/14/bits/range_access.h:52:50: error: ‘struct std::pair<const long long int, std::vector<long long int> >’ has no member named ‘begin’ 52 | begin(_Container& __cont) -> decltype(__cont.begin()) | ~~~~~~~^~~~~ /usr/include/c++/14/bits/range_access.h:63:5: note: candidate: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)’ 63 | begin(const _Container& __cont) -> decltype(__cont.begin()) | ^~~~~ /usr/include/c++/14/bits/range_access.h:63:5: note: template argument deduction/substitution failed: /usr/include/c++/14/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&) [with _Container = std::pair<const long long int, std::vector<long long int> >]’: answer.code:50:27: required from here 50 | for(auto [v, ide] : hu) { | ^~ /usr/include/c++/14/bits/range_access.h:63:56: error: ‘const struct std::pair<const long long int, std::vector<long long int> >’ has no member named ‘begin’ 63 | begin(const _Container& __cont) -> decltype(__cont.begin()) | ~~~~~~~^~~~~ /usr/include/c++/14/bits/range_access.h:95:5: note: candidate: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])’ 95 | begin(_Tp (&__arr)[_Nm]) noexcept | ^~~~~ /usr/include/c++/14/bits/range_access.h:95:5: note: template argument deduction/substitution failed: answer.code:50:27: note: mismatched types ‘_Tp [_Nm]’ and ‘std::pair<const long long int, std::vector<long long int> >’ 50 | for(auto [v, ide] : hu) { | ^~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166: /usr/include/c++/14/valarray:1227:5: note: candidate: ‘template<class _Tp> _Tp* std::begin(valarray<_Tp>&)’ 1227 | begin(valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1227:5: note: template argument deduction/substitution failed: answer.code:50:27: note: ‘std::pair<const long long int, std::vector<long long int> >’ is not derived from ‘std::valarray<_Tp>’ 50 | for(auto [v, ide] : hu) { | ^~ /usr/include/c++/14/valarray:1238:5: note: candidate: ‘template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)’ 1238 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/14/valarray:1238:5: note: template argument deduction/substitution failed: answer.code:50:27: note: ‘std::pair<const long long int, std::vector<long long int> >’ is not derived from ‘const std::valarray<_Tp>’ 50 | for(auto [v, ide] : hu) { | ^~ answer.code:50:27: error: no matching function for call to ‘end(std::pair<const long long int, std::vector<long long int> >&)’ /usr/include/c++/14/initializer_list:99:5: note: candidate: ‘template<class _Tp> constexpr co...