/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void make_next()':
foo.cpp:24:5: error: reference to 'next' is ambiguous
     next[n][0] = next[n][1] = -1; jh.insert(alt[n]);
     ^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
 ll next[100010][2];
    ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
                 from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
foo.cpp:24:18: error: reference to 'next' is ambiguous
     next[n][0] = next[n][1] = -1; jh.insert(alt[n]);
                  ^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
 ll next[100010][2];
    ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
                 from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
foo.cpp:25:5: error: reference to 'next' is ambiguous
     next[n-1][0] = -1; next[n-1][1] = n; jh.insert(alt[n-1]);
     ^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
 ll next[100010][2];
    ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
                 from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
foo.cpp:25:24: error: reference to 'next' is ambiguous
     next[n-1][0] = -1; next[n-1][1] = n; jh.insert(alt[n-1]);
                        ^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
 ll next[100010][2];
    ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
                 from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
foo.cpp:38:36: error: reference to 'next' is ambiguous
                   if ( hjl < qql ) next[i][j] = ys[*hj];
                                    ^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
 ll next[100010][2];
    ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
                 from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_I

信息

递交者
类型
递交
题目
P1780 开车旅行
语言
C++
递交时间
2015-09-15 22:12:32
评测时间
2015-09-15 22:12:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes