QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#445014 | #4915. 海胆 | LeafSeek | Compile Error | / | / | C++17 | 5.4kb | 2024-06-15 23:02:26 | 2024-06-15 23:02:27 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:44:8: error: reference to ‘data’ is ambiguous 44 | inline data operator + (const data &u,const data &v) | ^~~~ 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:42:8: note: ‘struct data’ 42 | struct data{int a,c; long long sum;}; | ^~~~ answer.code:51:13: error: declaration of ‘operator*=’ as non-function 51 | inline void operator *= (data &u,const operation &F) | ^~~~~~~~ answer.code:51:26: error: reference to ‘data’ is ambiguous 51 | inline void operator *= (data &u,const operation &F) | ^~~~ /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:42:8: note: ‘struct data’ 42 | struct data{int a,c; long long sum;}; | ^~~~ answer.code:51:32: error: ‘u’ was not declared in this scope 51 | inline void operator *= (data &u,const operation &F) | ^ answer.code:51:34: error: expected primary-expression before ‘const’ 51 | inline void operator *= (data &u,const operation &F) | ^~~~~ answer.code:65:9: error: reference to ‘data’ is ambiguous 65 | data d[n_MAX<<2]; operation o[n_MAX<<2]; | ^~~~ /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:42:8: note: ‘struct data’ 42 | struct data{int a,c; long long sum;}; | ^~~~ answer.code: In member function ‘void Segment_Tree::apply(int, const operation&)’: answer.code:68:54: error: ‘d’ was not declared in this scope 68 | void apply(const int u,const operation &tag){d[u]*=tag,o[u]*=tag;} | ^ answer.code: In member function ‘void Segment_Tree::push_up(int)’: answer.code:69:35: error: ‘d’ was not declared in this scope 69 | void push_up(const int u){d[u]=(d[lch(u)]+d[rch(u)]);} | ^ answer.code: In member function ‘void Segment_Tree::Build(int, int, int)’: answer.code:77:17: error: ‘d’ was not declared in this scope 77 | ...