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_23191298_8146.cpp:9:16: error: 'int exp [40020]' redeclared as different kind of symbol
 int exp[maxn<<2],lev[maxn<<2];//?????????
                ^
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_23191298_8146.cpp:3:
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_23191298_8146.cpp:10:4: error: expected unqualified-id before '?' token
    ?????????
    ^
0_0_23191298_8146.cpp:13:3: error: 'dis' does not name a type
   dis ????
   ^
0_0_23191298_8146.cpp: In function 'void pushup(int)':
0_0_23191298_8146.cpp:20:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     exp[num]=max(exp[num<<1],exp[num<<1|1]);
            ^
0_0_23191298_8146.cpp:20:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     exp[num]=max(exp[num<<1],exp[num<<1|1]);
                            ^
0_0_23191298_8146.cpp:20:42: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     exp[num]=max(exp[num<<1],exp[num<<1|1]);
                                          ^
0_0_23191298_8146.cpp:22:5: error: 'dis' was not declared in this scope
     dis[num]=min(dis[num<<1],dis[num<<1|1]);
     ^
0_0_23191298_8146.cpp: In function 'int getlev(int)':
0_0_23191298_8146.cpp:27:12: error: 'ned' was not declared in this scope
     if(ex>=ned[K-1])return K;
            ^
0_0_23191298_8146.cpp:30:15: error: 'ned' was not declared in this scope
         if(ex<ned[i])return i;
               ^
0_0_23191298_8146.cpp: In function 'void pushdown(int)':
0_0_23191298_8146.cpp:35:8: error: 'cov' was not declared in this scope
     if(cov[num])
        ^
0_0_23191298_8146.cpp:40:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         exp[num<<1]+=(cov[num]*lev[num<<1]);
                   ^
0_0_23191298_8146.cpp:41:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         exp[num<<1|1]+=(cov[num]*lev[num<<1|1]);
                     ^
0_0_23191298_8146.cpp:43:9: error: 'dis' was not declared in this scope
         dis[num<<1]-=cov[num];
         ^
0_0_23191298_8146.cpp: In function 'void build(int, int, int)':
0_0_23191298_8146.cpp:51:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     exp[num]=0;
            ^
0_0_23191298_8146.cpp:53:5: error: 'cov' was not declared in this scope
     cov[num]=0;
     ^
0_0_23191298_8146.cpp:54:5: error: 'dis' was not declared in this scope
     dis[num]=ned[1];
     ^
0_0_23191298_8146.cpp:54:14: error: 'ned' was not declared in this scope
     dis[num]=ned[1];
              ^
0_0_23191298_8146.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_23191298_8146.cpp:65:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         exp[num]+=lev[num]*val;
                ^
0_0_23191298_8146.cpp:66:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         lev[num]=getlev(exp[num]);
                                ^
0_0_23191298_8146.cpp:67:9: error: 'dis' was not declared in this scope
         dis[num]=(ned[lev[num]]-exp[num])/(lev[num])+((ned[lev[num]]-exp[num])%(lev[num])!=0);
         ^
0_0_23191298_8146.cpp:67:19: error: 'ned' was not declared in this scope
         dis[num]=(ned[lev[num]]-exp[num])/(lev[num])+((ned[lev[num]]-exp[num])%(lev[num])!=0);
                   ^
0_0_23191298_8146.cpp:67:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         dis[num]=(ned[lev[num]]-exp[num])/(lev[num])+((ned[lev[num]]-exp[num])%(lev[num])!=0);
                                        ^
0_0_23191298_8146.cpp:67:77: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         dis[num]=(ned[lev[num]]-exp[num])/(lev[num])+((ned[lev[num]]-exp[num])%(lev[num])!=0);
                                                                             ^
0_0_23191298_8146.cpp:72:16: error: 'dis' was not declared in this scope
         if(val<dis[num])
                ^
0_0_23191298_8146.cpp:74:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
             exp[num]+=lev[num]*val;
                    ^
0_0_23191298_8146.cpp:76:13: error: 'cov' was not declared in this scope
             cov[num]+=val;
             ^
0_0_23191298_8146.cpp: In function 'int query(int, int, int, int, int)':
0_0_23191298_8146.cpp:99:23: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         return exp[num];
                       ^
0_0_23191298_8146.cpp: In function 'int main()':
0_0_23191298_8146.cpp:120:25: error: 'ned' was not declared in this scope
             scanf("%d",&ned[i]);
                         ^
0_0_23191298_8146.cpp:122:9: error: 'ned' was not declared in this scope
         ned[K]=1<<30;
         ^


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-10-05 23:23:40, Gzip enabled