QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#318146 | #5493. 程序自动分析 | HuangHanSheng | Compile Error | / | / | C++17 | 1.4kb | 2024-01-30 16:25:19 | 2024-01-30 16:25:20 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:33:24: error: reference to ‘data’ is ambiguous 33 | memset(data, 0, sizeof(data)); | ^~~~ 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, from answer.code: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:9:3: note: ‘node data [200010]’ 9 | } data[maxN]; | ^~~~ answer.code:33:40: error: reference to ‘data’ is ambiguous 33 | memset(data, 0, sizeof(data)); | ^~~~ /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:9:3: note: ‘node data [200010]’ 9 | } data[maxN]; | ^~~~ answer.code:38:42: error: reference to ‘data’ is ambiguous 38 | scanf("%d%d%d", &data[i].x, &data[i].y, &data[i].e); | ^~~~ /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:9:3: note: ‘node data [200010]’ 9 | } data[maxN]; | ^~~~ answer.code:38:54: error: reference to ‘data’ is ambiguous 38 | scanf("%d%d%d", &data[i].x, &data[i].y, &data[i].e); | ^~~~ /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())) | ...