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_30356520_8954.cpp:11:24: error: 'rt' was not declared in this scope
 int lsum[maxn<<2],rsum[rt<<2],sum[rt<<2];
                        ^
0_0_30356520_8954.cpp:11:35: error: 'rt' was not declared in this scope
 int lsum[maxn<<2],rsum[rt<<2],sum[rt<<2];
                                   ^
0_0_30356520_8954.cpp: In function 'void pushUp(int, int)':
0_0_30356520_8954.cpp:14:5: error: 'rsum' was not declared in this scope
     rsum[rt]=rsum[rt<<1|1];
     ^
0_0_30356520_8954.cpp:20:5: error: 'sum' was not declared in this scope
     sum[rt]=max(max(rsum[rt],lsum[rt]),max(max(sum[rt<<1],sum[rt<<1|1]),rsum[rt]+lsum[rt<<1|1]));
     ^
0_0_30356520_8954.cpp: In function 'int build(int, int, int)':
0_0_30356520_8954.cpp:26:18: error: 'rsum' was not declared in this scope
         lsum[rt]=rsum[rt]=sum[rt]=1;
                  ^
0_0_30356520_8954.cpp:26:27: error: 'sum' was not declared in this scope
         lsum[rt]=rsum[rt]=sum[rt]=1;
                           ^
0_0_30356520_8954.cpp:27:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
         return ;
         ^
0_0_30356520_8954.cpp: In function 'int main()':
0_0_30356520_8954.cpp:45:24: error: 'update' was not declared in this scope
                 update()
                        ^


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-29 02:59:18, Gzip enabled