QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#119330 | #5497. 品酒大会 | GuanYunchang | Compile Error | / | / | C++ | 2.2kb | 2023-07-05 10:22:54 | 2023-07-05 10:22:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void Merge(int, int, int)’: answer.code:21:21: error: reference to ‘size’ is ambiguous 21 | sum[len] += 1ll * size[a] * size[b]; | ^~~~ In file included from /usr/include/c++/11/array:41, from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from answer.code:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:6:50: note: ‘int size [300001]’ 6 | tp[300001], tag[300001], fa[300001], size[300001], Max[300001], | ^~~~ answer.code:21:31: error: reference to ‘size’ is ambiguous 21 | sum[len] += 1ll * size[a] * size[b]; | ^~~~ In file included from /usr/include/c++/11/array:41, from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from answer.code:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:6:50: note: ‘int size [300001]’ 6 | tp[300001], tag[300001], fa[300001], size[300001], Max[300001], | ^~~~ answer.code:22:3: error: reference to ‘size’ is ambiguous 22 | size[a] += size[b]; | ^~~~ In file included from /usr/include/c++/11/array:41, from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from answer.code:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:6:50: note: ‘int size [300001]’ 6 | tp[300001], tag[300001], fa[300001], size[300001], Max[300001], | ^~~~ answer.code:22:14: error: reference to ‘size’ is ambiguous 22 | size[a] += size[b]; | ^~~~ In file included from /usr/include/c++/11/array:41, from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from answer.code:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:6:50: note: ‘int size [300001]’ 6 | tp[300001], tag[300001], fa[300001], size[300001], Max[300001], | ^~~~ answer.code: In function ‘int main()’: answer.code:57:5: error: reference to ‘size’ is ambiguous 57 | size[i] = 1; | ^~~~ In file included from /usr/include/c++/11/array:41, from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, from /usr/include/c++/11/pstl/glue_algorithm_defs.h...