/in/foo.cc: In function 'int pd(int)':
/in/foo.cc:18:8: error: reference to 'get' is ambiguous
int s=get[x].w,tot=0;
^~~
/in/foo.cc:11:2: note: candidates are: uuu get [55]
}get[55];
^~~
In file included from /usr/include/c++/6/algorithm:60:0,
from /in/foo.cc:4:
/usr/include/c++/6/utility:212:5: note: template<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
^~~
/usr/include/c++/6/utility:207:5: note: template<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
^~~
/usr/include/c++/6/utility:202:5: note: template<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
^~~
/in/foo.cc:25:4: error: reference to 'get' is ambiguous
get[x].sum++;
^~~
/in/foo.cc:11:2: note: candidates are: uuu get [55]
}get[55];
^~~
In file included from /usr/include/c++/6/algorithm:60:0,
from /in/foo.cc:4:
/usr/include/c++/6/utility:212:5: note: template<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
^~~
/usr/include/c++/6/utility:207:5: note: template<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
^~~
/usr/include/c++/6/utility:202:5: note: template<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
^~~
/in/foo.cc:26:4: error: 'tot' was not declared in this scope
tot++;
^~~
/in/foo.cc:27:4: error: reference to 'get' is ambiguous
get[x].z[tot]=i;
^~~
/in/foo.cc:11:2: note: candidates are: uuu get [55]
}get[55];
^~~
In file included from /usr/include/c++/6/algorithm:60:0,
from /in/foo.cc:4:
/usr/include/c++/6/utility:212:5: note: template<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
^~~
/usr/include/c++/6/utility:207:5: note: template<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
^~~
/usr/include/c++/6/utility:202:5: note: template<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
^~~
/in/foo.cc:32:9: error: 'tot' was not declared in this scope
return tot;
^~~
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:38:10: error: reference to 'get' is ambiguous
int tot=get[x].w,u=get[x].sum,step=u,last=get[x].z[u];//last存放除第一位外的下一位
^~~
/in/foo.cc:11:2: note: candidates are: uuu get [55]
}get[55];
^~~
In file included from /usr/include/c++/6/algorithm:60:0,
from /in/foo.cc:4:
/usr/include/c++/6/utility:212:5: note: template<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
^~~
/usr/include/c++/6/utility:207:5: note: template<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
^~~
/usr/include/c++/6/utility:202:5: note: template<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
^~~
/in/foo.cc:40:17: error: 'u' was not declared in this scope
for(int i=1;i<=u;i++)
^
/in/foo.cc:42:14: error: reference to 'get' is ambiguous
tot-=need[ get[x].z[i] ];
^~~
/in/foo.cc:11:2: note: candidates are: uuu get [55]
}get[55];
^~~
In file included from /usr/include/c++/6/algorithm:60:0,
from /in/foo.cc:4:
/usr/include/c++/6/utility:212:5: note: template<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
^~~
/usr/include/c++/6/utility:207:5: note: template<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
^~~
/usr/include/c++/6/utility:202:5: note: template<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
^~~
/in/foo.cc:46:6: error: 'step' was not declared in this scope
if(step<1)
^~~~
/in/foo.cc:47:9: error: 'u' was not declared in this scope
step=u;//循环着来;
^
/in/foo.cc:48:6: error: 'step' was not declared in this scope
if(step==u)
^~~~
/in/foo.cc:48:12: error: 'u' was not declared in this scope
if(step==u)
^
/in/foo.cc:50:4: error: 'last' was not declared in this scope
last=get[x].z[u];
^~~~
/in/foo.cc:50:9: error: reference to 'get' is ambiguous
last=get[x].z[u];
^~~
/in/foo.cc:11:2: note: candidates are: uuu get [55]
}get[55];
^~~
In file included from /usr/include/c++/6/algorithm:60:0,
from /in/foo.cc:4:
/usr/include/c++/6/utility:212:5: note: template<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
^~~
/usr/include/c++/6/utility:207:5: note: template<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
^~~
/usr/include/c++/6/utility:202:5: note: template<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
^~~
/in/foo.cc:56:30: error: reference to 'get' is ambiguous
if(tot-need[ last ]+need[ get[x].z[step] ] > 0)
^~~
/in/foo.cc:11:2: note: candidates are: uuu get [55]
}get[55];
^~~
In file included from /usr/include/c++/6/algorithm:60:0,
from /in/foo.cc:4:
/usr/include/c++/6/utility:212:5: note: template<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
^~~
/usr/include/c++/6/utility:207:5: note: