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_17699740_900.cpp: In function 'void build(int, int, int)':
0_0_17699740_900.cpp:31:27: error: reference to 'rank' is ambiguous
  if(l==r){num[d][l]=b1[l];rank[d][l]=l+1;return;}
                           ^
0_0_17699740_900.cpp:16:21: note: candidates are: int rank [18][100005]
 int num[18][100005],rank[18][100005],sum[400005];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_17699740_900.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17699740_900.cpp:39:3: error: reference to 'rank' is ambiguous
   rank[d][t]=x;
   ^
0_0_17699740_900.cpp:16:21: note: candidates are: int rank [18][100005]
 int num[18][100005],rank[18][100005],sum[400005];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_17699740_900.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17699740_900.cpp:41:45: error: reference to 'rank' is ambiguous
  while(x<=mid) ++t,num[d][t]=num[d1][x],x++,rank[d][t]=x;
                                             ^
0_0_17699740_900.cpp:16:21: note: candidates are: int rank [18][100005]
 int num[18][100005],rank[18][100005],sum[400005];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_17699740_900.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17699740_900.cpp:42:43: error: reference to 'rank' is ambiguous
  while(y<=r) ++t,num[d][t]=num[d1][y],y++,rank[d][t]=x;
                                           ^
0_0_17699740_900.cpp:16:21: note: candidates are: int rank [18][100005]
 int num[18][100005],rank[18][100005],sum[400005];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_17699740_900.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17699740_900.cpp: In function 'void pushdown(int, int, int, int)':
0_0_17699740_900.cpp:69:17: error: reference to 'rank' is ambiguous
  else sum[k<<1]=rank[d][sum[k]+l-1]-l,
                 ^
0_0_17699740_900.cpp:16:21: note: candidates are: int rank [18][100005]
 int num[18][100005],rank[18][100005],sum[400005];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_17699740_900.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17699740_900.cpp: In function 'void change(int, int, int, int, int, int, int)':
0_0_17699740_900.cpp:80:48: error: reference to 'rank' is ambiguous
  if(x<=mid) change(l,mid,x,min(y,mid),k<<1,d+1,rank[d][now+l-1]-l);
                                                ^
0_0_17699740_900.cpp:16:21: note: candidates are: int rank [18][100005]
 int num[18][100005],rank[18][100005],sum[400005];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_17699740_900.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17699740_900.cpp:81:57: error: reference to 'rank' is ambiguous
  if(y>mid) change(mid+1,r,max(mid+1,x),y,k<<1|1,d+1,now-rank[d][now+l-1]+l);
                                                         ^
0_0_17699740_900.cpp:16:21: note: candidates are: int rank [18][100005]
 int num[18][100005],rank[18][100005],sum[400005];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_17699740_900.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^


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-11-26 10:01:13, Gzip enabled