0_0_21596087_7594.cpp: In function 'void dfs(int, int)':
0_0_21596087_7594.cpp:18:43: error: reference to 'get' is ambiguous
for(int i=los[no];i<=m;i++) dp[no][i]=get[no]; //初始化当前节点的dp数组,从los值开始
^
0_0_21596087_7594.cpp:11:30: note: candidates are: int get [110]
int n,m,len,head[Ma],los[Ma],get[Ma],dp[Ma][Ma];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_21596087_7594.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^
0_0_21596087_7594.cpp: In function 'int main()':
0_0_21596087_7594.cpp:35:35: error: reference to 'get' is ambiguous
scanf("%d%d",&los[i],&get[i]);
^
0_0_21596087_7594.cpp:11:30: note: candidates are: int get [110]
int n,m,len,head[Ma],los[Ma],get[Ma],dp[Ma][Ma];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_21596087_7594.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^
|