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_30690795_3375.cpp: In function 'void init()':
0_0_30690795_3375.cpp:38:12: error: reference to 'next' is ambiguous
   a[m].f=1;next[m]=x1;m++;
            ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:40:13: error: reference to 'next' is ambiguous
   a[m].f=-1;next[m]=x2;m++;
             ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:43:7: error: reference to 'next' is ambiguous
  sort(next,next+m);
       ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:43:12: error: reference to 'next' is ambiguous
  sort(next,next+m);
            ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:44:11: error: reference to 'next' is ambiguous
  m=unique(next,next+m)-next;
           ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:44:16: error: reference to 'next' is ambiguous
  m=unique(next,next+m)-next;
                ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:44:24: error: reference to 'next' is ambiguous
  m=unique(next,next+m)-next;
                        ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp: In function 'void update(int)':
0_0_30690795_3375.cpp:50:23: error: reference to 'next' is ambiguous
     if (mark[k]) s[k]=next[rt[k]]-next[lt[k]];
                       ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:50:35: error: reference to 'next' is ambiguous
     if (mark[k]) s[k]=next[rt[k]]-next[lt[k]];
                                   ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp: In function 'int main()':
0_0_30690795_3375.cpp:90:22: error: reference to 'next' is ambiguous
    int l=lower_bound(next,next+m,a[i].l)-next;
                      ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:90:27: error: reference to 'next' is ambiguous
    int l=lower_bound(next,next+m,a[i].l)-next;
                           ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:90:42: error: reference to 'next' is ambiguous
    int l=lower_bound(next,next+m,a[i].l)-next;
                                          ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
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 0_0_30690795_3375.cpp:2:
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
     ^
0_0_30690795_3375.cpp:91:22: error: reference to 'next' is ambiguous
    int r=lower_bound(next,next+m,a[i].r)-next;
                      ^
0_0_30690795_3375.cpp:8:8: note: candidates are: double next [2000]
 double next[2000],s[2000];
        ^
In file included from GCC4.9.


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-12-01 12:36:37, Gzip enabled