QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#798864 | #9783. Duloc Network | ZhaoZiLong | Compile Error | / | / | C++17 | 4.9kb | 2024-12-04 17:56:11 | 2024-12-04 17:56:11 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘bool expand_set()’: answer.code:69:13: error: reference to ‘ref’ is ambiguous 69 | 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:87:87: error: reference to ‘ref’ is ambiguous 87 | #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:92:13: note: in expansion of macro ‘LIGHT’ 92 | 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:87:87: error: reference to ‘ref’ is ambiguous 87 | #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:92:24: note: in expansion of macro ‘LIGHT’ 92 | 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:87:87: error: reference to ‘ref’ is ambiguous 87 | #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(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:87:87: error: reference to ‘ref’ is ambiguous 87 | #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:105:13: note: in expansion of macro ‘LIGHT’ 105 | 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...