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_33933213_22236.cpp:46:12: error: expected ')' before ']' token
 }tree[(maxn];     
            ^
0_0_33933213_22236.cpp:46:13: error: expected ']' before ';' token
 }tree[(maxn];     
             ^
0_0_33933213_22236.cpp: In function 'void build(int, int, int)':
0_0_33933213_22236.cpp:53:5: error: 'tree' was not declared in this scope
     tree[rt].l = l;tree[rt].r = r;
     ^
0_0_33933213_22236.cpp: In function 'void push_up(int)':
0_0_33933213_22236.cpp:63:8: error: 'tree' was not declared in this scope
     if(tree[rt].s)tree[rt].len = p[tree[rt].r]-p[tree[rt].l-1];
        ^
0_0_33933213_22236.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_33933213_22236.cpp:69:9: error: 'tree' was not declared in this scope
         tree[rt].s+=val;
         ^
0_0_33933213_22236.cpp: In function 'void solve()':
0_0_33933213_22236.cpp:99:33: error: 'tree' was not declared in this scope
         area+=(a[i+1].h-a[i].h)*tree[1].len;
                                 ^


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-04 23:53:50, Gzip enabled