QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#445014#4915. 海胆LeafSeekCompile Error//C++175.4kb2024-06-15 23:02:262024-06-15 23:02:27

Details

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 |            ...