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_17030081_6715.cpp:17:110: error: 'int pow [1000010]' redeclared as different kind of symbol
 int test,n,m,et=1,k,NT,ZE,NE,MAPLE,i,x,y,l,r,mid,tmp,v[N],b[N],p[N],e[N],cd[E],nt[E],la[N],wt,ss[19],pow[N*10],Tmp[N],u[N];char fl[L],*A=fl,*B=fl;bool fg;
                                                                                                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_17030081_6715.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: previous declaration 'double pow(double, double)'
   double __cdecl pow(double _X,double _Y);
                  ^
0_0_17030081_6715.cpp: In function 'void query(node*, node*, int&)':
0_0_17030081_6715.cpp:34:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   k=b[r]<<1,(MAPLE+=(long long)b[r]*pow[m-i]%D)%=D;
                                            ^
0_0_17030081_6715.cpp:48:47: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    (MAPLE+=(long long)5*(b[r]+tmp)%D*pow[m-i-1]%D)%=D;
                                               ^
0_0_17030081_6715.cpp: In function 'int main()':
0_0_17030081_6715.cpp:68:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   for (pow[0]=i=1;i<m;pow[i]=(long long)pow[i-1]*10%D,i++);
             ^
0_0_17030081_6715.cpp:68:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   for (pow[0]=i=1;i<m;pow[i]=(long long)pow[i-1]*10%D,i++);
                            ^
0_0_17030081_6715.cpp:68:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   for (pow[0]=i=1;i<m;pow[i]=(long long)pow[i-1]*10%D,i++);
                                                ^
0_0_17030081_6715.cpp:76:49: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
       (MAPLE+=(long long)5*(Tmp[x]>>1)%D*pow[m-i]%D)%=D;
                                                 ^
0_0_17030081_6715.cpp:80:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      (MAPLE+=(long long)(Tmp[x]>>1)*pow[m-i]%D)%=D;
                                            ^


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-29 16:06:28, Gzip enabled