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_23781704_19220.cpp: In function 'void pushup(int)':
0_0_23781704_19220.cpp:16:5: error: 'sum' was not declared in this scope
     sum[rt]=sum[rt<<1]+sum[rt<<1|1];
     ^
0_0_23781704_19220.cpp: In function 'void build(int, int, int)':
0_0_23781704_19220.cpp:20:5: error: 'add' was not declared in this scope
     add[rt]=-1;
     ^
0_0_23781704_19220.cpp:25:9: error: 'sum' was not declared in this scope
         sum[rt]=(a[l]>=b[l]);
         ^
0_0_23781704_19220.cpp: In function 'void pushdown(int)':
0_0_23781704_19220.cpp:54:8: error: 'add' was not declared in this scope
     if(add[rt]!=-1)
        ^
0_0_23781704_19220.cpp:59:9: error: 'sum' was not declared in this scope
         sum[rt<<1]=pl[pos]?pl[pos]-st[rt<<1]+1:0;
         ^
0_0_23781704_19220.cpp: In function 'void update(int, int, int, int)':
0_0_23781704_19220.cpp:68:9: error: 'sum' was not declared in this scope
         sum[rt]=pos?pos-st[rt]+1:0;
         ^
0_0_23781704_19220.cpp:69:9: error: 'add' was not declared in this scope
         add[rt]=pos;
         ^
0_0_23781704_19220.cpp: In function 'int query(int, int, int)':
0_0_23781704_19220.cpp:82:16: error: 'sum' was not declared in this scope
         return sum[rt];
                ^


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-12-02 03:43:51, Gzip enabled