0_0_17060297_26211.cpp: In function 'void work()':
0_0_17060297_26211.cpp:26:30: error: reference to 'get' is ambiguous
scanf("%d%d%d%d",&cost[i],&get[i],&mbuy[i],&msell[i]);
^
0_0_17060297_26211.cpp:6:16: note: candidates are: int get [2100]
int cost[MAXN],get[MAXN],mbuy[MAXN],msell[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_17060297_26211.cpp:2:
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_17060297_26211.cpp:62:50: error: reference to 'get' is ambiguous
f[i][j]=max(f[i][j],Q[head].v+(Q[head].id-j)*get[i]);
^
0_0_17060297_26211.cpp:6:16: note: candidates are: int get [2100]
int cost[MAXN],get[MAXN],mbuy[MAXN],msell[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_17060297_26211.cpp:2:
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_17060297_26211.cpp:63:49: error: reference to 'get' is ambiguous
while(head<=tail && Q[tail].v+(Q[head].id-j)*get[i]<f[i-w-1][j]) tail--;
^
0_0_17060297_26211.cpp:6:16: note: candidates are: int get [2100]
int cost[MAXN],get[MAXN],mbuy[MAXN],msell[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_17060297_26211.cpp:2:
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
^
|