/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void A::MakeGraph()':
foo.cpp:102:14: error: reference to 'end' is ambiguous
    AddEdge(i,end,vi[i],0);
              ^
foo.cpp:37:15: note: candidates are: int FLOW::end
  int start,s2,end,large,T;
               ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\deque:65:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\queue:60,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:97:5: note:                 template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_deque.h:63:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\deque:64,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\queue:60,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
foo.cpp: In function 'void A::solve()':
foo.cpp:109:11: error: reference to 'end' is ambiguous
   large = end = s2 + 1;
           ^
foo.cpp:37:15: note: candidates are: int FLOW::end
  int start,s2,end,large,T;
               ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\deque:65:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\queue:60,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:97:5: note:                 template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_deque.h:63:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\deque:64,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\queue:60,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
foo.cpp: In function 'int main()':
foo.cpp:119:6: warning: unused variable 'i' [-Wunused-variable]
  int i,j;
      ^
foo.cpp:119:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^

信息

递交者
类型
递交
题目
P1213 80人环游世界
语言
C++
递交时间
2016-09-16 19:13:19
评测时间
2016-09-16 19:13:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes