Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_733_1111_20656.cpp: In function 'long long int fu(int)':
1_733_1111_20656.cpp:15:9: error: reference to 'next' is ambiguous
   if(n==next+1) b=fo[1];
         ^
1_733_1111_20656.cpp:9:15: note: candidates are: long long int next
 long long int next,b;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 1_733_1111_20656.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/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
     ^
1_733_1111_20656.cpp:19:8: error: reference to 'next' is ambiguous
  if(n==next) b=fe;
        ^
1_733_1111_20656.cpp:9:15: note: candidates are: long long int next
 long long int next,b;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 1_733_1111_20656.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/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
     ^
1_733_1111_20656.cpp: In function 'int main()':
1_733_1111_20656.cpp:37:3: error: reference to 'next' is ambiguous
   next=n/2-1;
   ^
1_733_1111_20656.cpp:9:15: note: candidates are: long long int next
 long long int next,b;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 1_733_1111_20656.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/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
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-15 09:56:19, Gzip enabled