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_20270028_22922.cpp:11:8: error: size of array 'c' has non-integral type 'double'
 int c[N],d[N];
        ^
0_0_20270028_22922.cpp:11:13: error: size of array 'd' has non-integral type 'double'
 int c[N],d[N];
             ^
0_0_20270028_22922.cpp:12:11: error: size of array 'head' has non-integral type 'double'
 int head[N],
           ^
0_0_20270028_22922.cpp:13:6: error: size of array 'fa' has non-integral type 'double'
  fa[N],//当前节点的父亲节点 
      ^
0_0_20270028_22922.cpp:14:7: error: size of array 'son' has non-integral type 'double'
  son[N],//当前节点儿子(有多个儿子的选择重链) 
       ^
0_0_20270028_22922.cpp:15:7: error: size of array 'top' has non-integral type 'double'
  top[N],//重链的最顶端节点 
       ^
0_0_20270028_22922.cpp:16:8: error: size of array 'size' has non-integral type 'double'
  size[N],//当前节点包括之下的重链共有多少个儿子(轻链无儿子)
        ^
0_0_20270028_22922.cpp:17:8: error: size of array 'deep' has non-integral type 'double'
  deep[N],//当前结点在树中的深度 
        ^
0_0_20270028_22922.cpp:18:5: error: size of array 'w' has non-integral type 'double'
  w[N],
     ^
0_0_20270028_22922.cpp:19:9: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
  add[N<<1],
         ^
0_0_20270028_22922.cpp:20:9: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
  sum[N<<1],
         ^
0_0_20270028_22922.cpp:21:5: error: size of array 'p' has non-integral type 'double'
  p[N];//表示当前节点与其父亲节点的连边在树中的位置 
     ^
0_0_20270028_22922.cpp:25:11: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
 node e[N<<1];
           ^
0_0_20270028_22922.cpp: In function 'void adde(int, int)':
0_0_20270028_22922.cpp:29:2: error: 'e' was not declared in this scope
  e[cnt].to=y;
  ^
0_0_20270028_22922.cpp: In function 'void dfs1(int, int, int)':
0_0_20270028_22922.cpp:39:24: error: 'e' was not declared in this scope
  for(int i=head[u];i;i=e[i].ne)
                        ^
0_0_20270028_22922.cpp: In function 'void dfs2(int, int)':
0_0_20270028_22922.cpp:59:24: error: 'e' was not declared in this scope
  for(int i=head[u];i;i=e[i].ne)
                        ^
0_0_20270028_22922.cpp: In function 'void build(int, int, int)':
0_0_20270028_22922.cpp:69:2: error: 'add' was not declared in this scope
  add[now]=0;
  ^
0_0_20270028_22922.cpp:72:3: error: 'sum' was not declared in this scope
   sum[now]=d[l];
   ^
0_0_20270028_22922.cpp:78:2: error: 'sum' was not declared in this scope
  sum[now]=sum[now<<1]+sum[now<<1|1];
  ^
0_0_20270028_22922.cpp: In function 'void pushdown(int, int)':
0_0_20270028_22922.cpp:82:5: error: 'add' was not declared in this scope
  if(add[now])
     ^
0_0_20270028_22922.cpp:84:3: error: 'sum' was not declared in this scope
   sum[now<<1]+=add[now]*(m-(m>>1));
   ^
0_0_20270028_22922.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_20270028_22922.cpp:96:3: error: 'sum' was not declared in this scope
   sum[now]+=c*(r-l)+1;
   ^
0_0_20270028_22922.cpp:97:3: error: 'add' was not declared in this scope
   add[now]+=c;
   ^
0_0_20270028_22922.cpp:104:2: error: 'sum' was not declared in this scope
  sum[now]=sum[now<<1]+sum[now<<1|1];
  ^
0_0_20270028_22922.cpp: In function 'int query(int, int, int, int)':
0_0_20270028_22922.cpp:125:17: error: 'sum' was not declared in this scope
  if(l==r)return sum[now];
                 ^
0_0_20270028_22922.cpp:131:2: error: 'sum' was not declared in this scope
  sum[now]=sum[now<<1]+sum[now<<1|1];
  ^


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 21:19:25, Gzip enabled