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_19375501_4949.cpp:6:15: error: 'int exp [120000]' redeclared as different kind of symbol
 int exp[120000];
               ^
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_19375501_4949.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:148:18: note: previous declaration 'double exp(double)'
   double __cdecl exp(double _X);
                  ^
0_0_19375501_4949.cpp: In function 'int main()':
0_0_19375501_4949.cpp:20:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     exp[0]=1;
          ^
0_0_19375501_4949.cpp:22:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         exp[i]=(exp[i-1]*2)%p;
              ^
0_0_19375501_4949.cpp:22:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         exp[i]=(exp[i-1]*2)%p;
                        ^
0_0_19375501_4949.cpp:47:46: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                    ans=(ans+a[c[i-1]]*exp[n-1])%p;
                                              ^
0_0_19375501_4949.cpp:53:47: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                   sum=(sum+exp[n-c[i-1]+c[j]-1])%p;
                                               ^
0_0_19375501_4949.cpp:55:43: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                ans=(ans+(i-delta)*(exp[n-1])*a[c[i-1]]+p)%p;   //  explo
                                           ^
0_0_19375501_4949.cpp:60:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                    sum=(sum-exp[n-c[j+1]+c[j]-1]+p)%p;
                                                ^
0_0_19375501_4949.cpp:61:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                    sum=(sum*exp[c[j+1]-c[j]])%p;
                                            ^


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 12:53:54, Gzip enabled