/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void spfa(int)':
/in/foo.cc:41:4: error: reference to 'get' is ambiguous
    get[x]=true;
    ^~~
/in/foo.cc:15:13: note: candidates are: bool get [1020]
 bool vis[N],get[N];
             ^~~
In file included from /usr/include/c++/7/algorithm:60:0,
                 from /in/foo.cc:3:
/usr/include/c++/7/utility:239: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++/7/utility:234: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++/7/utility:229: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:47:5: error: reference to 'get' is ambiguous
     get[j]=true;
     ^~~
/in/foo.cc:15:13: note: candidates are: bool get [1020]
 bool vis[N],get[N];
             ^~~
In file included from /usr/include/c++/7/algorithm:60:0,
                 from /in/foo.cc:3:
/usr/include/c++/7/utility:239: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++/7/utility:234: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++/7/utility:229: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: In function 'void work()':
/in/foo.cc:87:9: error: reference to 'get' is ambiguous
  memset(get,false,sizeof(get));
         ^~~
/in/foo.cc:15:13: note: candidates are: bool get [1020]
 bool vis[N],get[N];
             ^~~
In file included from /usr/include/c++/7/algorithm:60:0,
                 from /in/foo.cc:3:
/usr/include/c++/7/utility:239: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++/7/utility:234: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++/7/utility:229: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:87:26: error: reference to 'get' is ambiguous
  memset(get,false,sizeof(get));
                          ^~~
/in/foo.cc:15:13: note: candidates are: bool get [1020]
 bool vis[N],get[N];
             ^~~
In file included from /usr/include/c++/7/algorithm:60:0,
                 from /in/foo.cc:3:
/usr/include/c++/7/utility:239: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++/7/utility:234: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++/7/utility:229: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:89:10: error: reference to 'get' is ambiguous
     if (!get[i]) spfa(i);
          ^~~
/in/foo.cc:15:13: note: candidates are: bool get [1020]
 bool vis[N],get[N];
             ^~~
In file included from /usr/include/c++/7/algorithm:60:0,
                 from /in/foo.cc:3:
/usr/include/c++/7/utility:239: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++/7/utility:234: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++/7/utility:229: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
     ^~~

信息

递交者
类型
递交
题目
P1053 Easy sssp
语言
C++
递交时间
2018-10-24 08:37:14
评测时间
2018-10-24 08:37:14
评测机
分数
0
总耗时
101ms
峰值内存
15.207 MiB