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_24582025_22526.cpp:7:39: error: array bound is not an integer constant before ']' token
 int a[MAXN], T[MAXN], tot=0, lson[MAXM],rson[MAXM], lazy[MAXM];
                                       ^
0_0_24582025_22526.cpp:7:50: error: array bound is not an integer constant before ']' token
 int a[MAXN], T[MAXN], tot=0, lson[MAXM],rson[MAXM], lazy[MAXM];
                                                  ^
0_0_24582025_22526.cpp:7:62: error: array bound is not an integer constant before ']' token
 int a[MAXN], T[MAXN], tot=0, lson[MAXM],rson[MAXM], lazy[MAXM];
                                                              ^
0_0_24582025_22526.cpp:8:12: error: array bound is not an integer constant before ']' token
 LL sum[MAXM];
            ^
0_0_24582025_22526.cpp: In function 'void push_up(int, int, int)':
0_0_24582025_22526.cpp:12:5: error: 'sum' was not declared in this scope
     sum[rt]=sum[lson[rt]]+sum[rson[rt]]+(LL)lazy[rt]*(r-l+1);
     ^
0_0_24582025_22526.cpp:12:17: error: 'lson' was not declared in this scope
     sum[rt]=sum[lson[rt]]+sum[rson[rt]]+(LL)lazy[rt]*(r-l+1);
                 ^
0_0_24582025_22526.cpp:12:31: error: 'rson' was not declared in this scope
     sum[rt]=sum[lson[rt]]+sum[rson[rt]]+(LL)lazy[rt]*(r-l+1);
                               ^
0_0_24582025_22526.cpp:12:45: error: 'lazy' was not declared in this scope
     sum[rt]=sum[lson[rt]]+sum[rson[rt]]+(LL)lazy[rt]*(r-l+1);
                                             ^
0_0_24582025_22526.cpp: In function 'int build(int, int)':
0_0_24582025_22526.cpp:17:5: error: 'lazy' was not declared in this scope
     lazy[rt]=0;
     ^
0_0_24582025_22526.cpp:19:9: error: 'sum' was not declared in this scope
         sum[rt]=a[l];
         ^
0_0_24582025_22526.cpp:23:5: error: 'lson' was not declared in this scope
     lson[rt]=build(l,mid);
     ^
0_0_24582025_22526.cpp:24:5: error: 'rson' was not declared in this scope
     rson[rt]=build(mid+1, r);
     ^
0_0_24582025_22526.cpp: In function 'int update(int, int, int, int, int, int)':
0_0_24582025_22526.cpp:31:5: error: 'lazy' was not declared in this scope
     lazy[newrt]=lazy[rt];
     ^
0_0_24582025_22526.cpp:33:9: error: 'lson' was not declared in this scope
         lson[newrt]=lson[rt];
         ^
0_0_24582025_22526.cpp:34:9: error: 'rson' was not declared in this scope
         rson[newrt]=rson[rt];
         ^
0_0_24582025_22526.cpp:36:9: error: 'sum' was not declared in this scope
         sum[newrt]=sum[rt]+(LL)v*(r-l+1);
         ^
0_0_24582025_22526.cpp:41:9: error: 'rson' was not declared in this scope
         rson[newrt]=rson[rt];
         ^
0_0_24582025_22526.cpp:42:9: error: 'lson' was not declared in this scope
         lson[newrt]=update(lson[rt], l, mid, ll, rr, v);
         ^
0_0_24582025_22526.cpp:44:9: error: 'lson' was not declared in this scope
         lson[newrt]=lson[rt];
         ^
0_0_24582025_22526.cpp:45:9: error: 'rson' was not declared in this scope
         rson[newrt]=update(rson[rt], mid+1, r,ll, rr, v);
         ^
0_0_24582025_22526.cpp:47:9: error: 'lson' was not declared in this scope
         lson[newrt]=update(lson[rt], l, mid, ll, mid, v);
         ^
0_0_24582025_22526.cpp:48:9: error: 'rson' was not declared in this scope
         rson[newrt]=update(rson[rt], mid+1, r, mid+1, rr, v);
         ^
0_0_24582025_22526.cpp: In function 'LL query(int, int, int, int, int, int)':
0_0_24582025_22526.cpp:56:16: error: 'sum' was not declared in this scope
         return sum[rt]+(LL)la*(r-l+1);
                ^
0_0_24582025_22526.cpp:58:9: error: 'lazy' was not declared in this scope
     la+=lazy[rt];
         ^
0_0_24582025_22526.cpp:61:22: error: 'lson' was not declared in this scope
         return query(lson[rt], l, mid, ll, rr, la);
                      ^
0_0_24582025_22526.cpp:63:22: error: 'rson' was not declared in this scope
         return query(rson[rt], mid+1, r, ll, rr, la);
                      ^
0_0_24582025_22526.cpp:65:22: error: 'lson' was not declared in this scope
         return query(lson[rt], l, mid, ll, mid, la) + query(rson[rt], mid+1, r, mid+1, rr, la);
                      ^
0_0_24582025_22526.cpp:65:61: error: 'rson' was not declared in this scope
         return query(lson[rt], l, mid, ll, mid, la) + query(rson[rt], mid+1, r, mid+1, rr, la);
                                                             ^


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-07-01 18:00:49, Gzip enabled