QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#777545 | #9791. Intrusive Donkey | ucup-team6072# | Compile Error | / | / | C++23 | 2.2kb | 2024-11-24 03:05:00 | 2024-11-24 03:05:00 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
In file included from /usr/include/c++/13/cassert:44, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106, from answer.code:1: answer.code: In function ‘void update(int, ll, ll)’: answer.code:46:15: error: reference to ‘data’ is ambiguous 46 | assert (r < data[ind]); | ^~~~ In file included from /usr/include/c++/13/string:53, 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/range_access.h:346:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)’ 346 | data(initializer_list<_Tp> __il) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:336:5: note: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’ 336 | data(_Tp (&__array)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:325:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’ 325 | data(const _Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ /usr/include/c++/13/bits/range_access.h:314:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’ 314 | data(_Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ answer.code:41:11: note: ‘long long int data [524288]’ 41 | long long data[2 * siz]; | ^~~~ answer.code:49:5: error: reference to ‘data’ is ambiguous 49 | data[ind] += r - l + 1; | ^~~~ /usr/include/c++/13/bits/range_access.h:346:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)’ 346 | data(initializer_list<_Tp> __il) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:336:5: note: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’ 336 | data(_Tp (&__array)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:325:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’ 325 | data(const _Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ /usr/include/c++/13/bits/range_access.h:314:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’ 314 | data(_Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ answer.code:41:11: note: ‘long long int data [524288]’ 41 | long long data[2 * siz]; | ^~~~ answer.code:53:13: error: reference to ‘data’ is ambiguous 53 | ll ct_l = data[ind + ind]; | ^~~~ /usr/include/c++/13/bits/range_access.h:346:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)’ 346 | data(initializer_list<_Tp> __il) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:336:5: note: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’ 336 | data(_Tp (&__array)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:325:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’ 325 | data(const _Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ /usr/include/c++/13/bits/range_access.h:314:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’ 314 | data(_Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ answer.code:41:11: note: ‘long long int data [524288]’ 41 | long long data[2 * siz]; | ^~~~ answer.code:63:3: error: reference to ‘data’ is ambiguous 63 | data[ind] = data[2 * ind] + data[2 * ind + 1]; | ^~~~ /usr/include/c++/13/bits/range_access.h:346:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)’ 346 | data(initializer_list<_Tp> __il) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:336:5: note: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’ 336 | data(_Tp (&__array)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:325:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’ 325 | data(const _Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ /usr/include/c++/13/bits/range_access.h:314:5: note: ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’ 314 | data(_Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ ...