0_0_27346962_12174.cpp: In function 'void dfs1(int, int)':
0_0_27346962_12174.cpp:63:13: error: reference to 'ref' is ambiguous
ref[len[i]] = to[i], val[to[i]] = len[i];
^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
int ref[MAXN], val[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
ref(reference_wrapper<_Tp> __t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note: template<class _Tp> void std::ref(const _Tp&&)
void ref(const _Tp&&) = delete;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
ref(_Tp& __t) noexcept
^
0_0_27346962_12174.cpp: In function 'void work()':
0_0_27346962_12174.cpp:110:9: error: reference to 'ref' is ambiguous
ref[i] = val[i] = 0;
^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
int ref[MAXN], val[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
ref(reference_wrapper<_Tp> __t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note: template<class _Tp> void std::ref(const _Tp&&)
void ref(const _Tp&&) = delete;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
ref(_Tp& __t) noexcept
^
0_0_27346962_12174.cpp:126:30: error: reference to 'ref' is ambiguous
modify(dfn_1[ref[x]], delta);
^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
int ref[MAXN], val[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
ref(reference_wrapper<_Tp> __t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note: template<class _Tp> void std::ref(const _Tp&&)
void ref(const _Tp&&) = delete;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
ref(_Tp& __t) noexcept
^
0_0_27346962_12174.cpp:127:30: error: reference to 'ref' is ambiguous
modify(dfn_2[ref[x]] + 1, -delta);
^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
int ref[MAXN], val[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
ref(reference_wrapper<_Tp> __t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note: template<class _Tp> void std::ref(const _Tp&&)
void ref(const _Tp&&) = delete;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
ref(_Tp& __t) noexcept
^
|