QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#798826#9783. Duloc NetworkMaMengQiCompile Error//C++174.6kb2024-12-04 17:33:092024-12-04 17:33:10

Details

answer.code: In function ‘bool expand_set()’:
answer.code:68:13: error: reference to ‘ref’ is ambiguous
   68 |             ref[m] = dsu.fa[i];
      |             ^~~
In file included from /usr/include/c++/13/string:52,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41,
                 from /usr/include/c++/13/ios:44,
                 from /usr/include/c++/13/ostream:40,
                 from /usr/include/c++/13/iostream:41,
                 from answer.code:1:
/usr/include/c++/13/bits/refwrap.h:394:5: note: candidates are: ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(reference_wrapper<_Tp>)’
  394 |     ref(reference_wrapper<_Tp> __t) noexcept
      |     ^~~
/usr/include/c++/13/bits/refwrap.h:385:10: note:                 ‘template<class _Tp> void std::ref(const _Tp&&)’
  385 |     void ref(const _Tp&&) = delete;
      |          ^~~
/usr/include/c++/13/bits/refwrap.h:374:5: note:                 ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)’
  374 |     ref(_Tp& __t) noexcept
      |     ^~~
answer.code:59:12: note:                 ‘int ref [205]’
   59 | int f[mN], ref[mN];
      |            ^~~
answer.code:86:87: error: reference to ‘ref’ is ambiguous
   86 | #define LIGHT(x,y) Rep(i, x, y){for(auto j:col[arr[i]]) qstr[j] = '1'; sum += dsu.nbr[ref[arr[i]]];}
      |                                                                                       ^~~
answer.code:91:13: note: in expansion of macro ‘LIGHT’
   91 |             LIGHT(1,1);LIGHT(2,2);
      |             ^~~~~
/usr/include/c++/13/bits/refwrap.h:394:5: note: candidates are: ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(reference_wrapper<_Tp>)’
  394 |     ref(reference_wrapper<_Tp> __t) noexcept
      |     ^~~
/usr/include/c++/13/bits/refwrap.h:385:10: note:                 ‘template<class _Tp> void std::ref(const _Tp&&)’
  385 |     void ref(const _Tp&&) = delete;
      |          ^~~
/usr/include/c++/13/bits/refwrap.h:374:5: note:                 ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)’
  374 |     ref(_Tp& __t) noexcept
      |     ^~~
answer.code:59:12: note:                 ‘int ref [205]’
   59 | int f[mN], ref[mN];
      |            ^~~
answer.code:86:87: error: reference to ‘ref’ is ambiguous
   86 | #define LIGHT(x,y) Rep(i, x, y){for(auto j:col[arr[i]]) qstr[j] = '1'; sum += dsu.nbr[ref[arr[i]]];}
      |                                                                                       ^~~
answer.code:91:24: note: in expansion of macro ‘LIGHT’
   91 |             LIGHT(1,1);LIGHT(2,2);
      |                        ^~~~~
/usr/include/c++/13/bits/refwrap.h:394:5: note: candidates are: ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(reference_wrapper<_Tp>)’
  394 |     ref(reference_wrapper<_Tp> __t) noexcept
      |     ^~~
/usr/include/c++/13/bits/refwrap.h:385:10: note:                 ‘template<class _Tp> void std::ref(const _Tp&&)’
  385 |     void ref(const _Tp&&) = delete;
      |          ^~~
/usr/include/c++/13/bits/refwrap.h:374:5: note:                 ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)’
  374 |     ref(_Tp& __t) noexcept
      |     ^~~
answer.code:59:12: note:                 ‘int ref [205]’
   59 | int f[mN], ref[mN];
      |            ^~~
answer.code:86:87: error: reference to ‘ref’ is ambiguous
   86 | #define LIGHT(x,y) Rep(i, x, y){for(auto j:col[arr[i]]) qstr[j] = '1'; sum += dsu.nbr[ref[arr[i]]];}
      |                                                                                       ^~~
answer.code:103:13: note: in expansion of macro ‘LIGHT’
  103 |             LIGHT(1,usz);
      |             ^~~~~
/usr/include/c++/13/bits/refwrap.h:394:5: note: candidates are: ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(reference_wrapper<_Tp>)’
  394 |     ref(reference_wrapper<_Tp> __t) noexcept
      |     ^~~
/usr/include/c++/13/bits/refwrap.h:385:10: note:                 ‘template<class _Tp> void std::ref(const _Tp&&)’
  385 |     void ref(const _Tp&&) = delete;
      |          ^~~
/usr/include/c++/13/bits/refwrap.h:374:5: note:                 ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)’
  374 |     ref(_Tp& __t) noexcept
      |     ^~~
answer.code:59:12: note:                 ‘int ref [205]’
   59 | int f[mN], ref[mN];
      |            ^~~
answer.code:86:87: error: reference to ‘ref’ is ambiguous
   86 | #define LIGHT(x,y) Rep(i, x, y){for(auto j:col[arr[i]]) qstr[j] = '1'; sum += dsu.nbr[ref[arr[i]]];}
      |                                                                                       ^~~
answer.code:104:13: note: in expansion of macro ‘LIGHT’
  104 |             LIGHT(usz+1,2*usz);
      |             ^~~~~
/usr/include/c++/13/bits/refwrap.h:394:5: note: candidates are: ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(reference_wrapper<_Tp>)’
  394 |     ref(r...