F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_28017100_7762.cpp: In function 'void treesolve(int, int, int)':
0_0_28017100_7762.cpp:27:9: error: reference to 'get' is ambiguous
         get[u]=-inf;
         ^
0_0_28017100_7762.cpp:13:17: note: candidates are: int get [20010]
 int apple[MAXN],get[MAXN],res[MAXN],so[MAXN],degree[MAXN];
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:772:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_r_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(std::tuple<_Args2 ...>&&)
     get(tuple<_Elements...>&& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:764:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_c_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(const std::tuple<_Args2 ...>&)
     get(const tuple<_Elements...>& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:756:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(std::tuple<_Args2 ...>&)
     get(tuple<_Elements...>& __t) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:289:5: note:                 template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)
     get(const array<_Tp, _Nm>& __arr) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:281:5: note:                 template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)
     get(array<_Tp, _Nm>&& __arr) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:272:5: note:                 template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)
     get(array<_Tp, _Nm>& __arr) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:38:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
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_28017100_7762.cpp:35:13: error: reference to 'get' is ambiguous
             get[u]=0;
             ^
0_0_28017100_7762.cpp:13:17: note: candidates are: int get [20010]
 int apple[MAXN],get[MAXN],res[MAXN],so[MAXN],degree[MAXN];
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:772:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_r_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(std::tuple<_Args2 ...>&&)
     get(tuple<_Elements...>&& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:764:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_c_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(const std::tuple<_Args2 ...>&)
     get(const tuple<_Elements...>& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:756:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(std::tuple<_Args2 ...>&)
     get(tuple<_Elements...>& __t) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:289:5: note:                 template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)
     get(const array<_Tp, _Nm>& __arr) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:281:5: note:                 template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)
     get(array<_Tp, _Nm>&& __arr) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:272:5: note:                 template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)
     get(array<_Tp, _Nm>& __arr) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:38:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
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_28017100_7762.cpp:37:17: error: reference to 'get' is ambiguous
                 get[u]+=sou[u][i];
                 ^
0_0_28017100_7762.cpp:13:17: note: candidates are: int get [20010]
 int apple[MAXN],get[MAXN],res[MAXN],so[MAXN],degree[MAXN];
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:772:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_r_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(std::tuple<_Args2 ...>&&)
     get(tuple<_Elements...>&& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:764:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_c_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(const std::tuple<_Args2 ...>&)
     get(const tuple<_Elements...>& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:756:5: note:                 template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_ref<typename std::tuple_element<__i, std::tuple<_Args2 ...> >::type>::type std::get(std::tuple<_Args2 ...>&)
     get(tuple<_Elements...>& __t) noexcept
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_28017100_7762.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:289:5: note:                 template<long long unsigned int _Int, class _Tp, long long unsigned i


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-19 17:46:30, Gzip enabled