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_22206559_16273.cpp:13:8: error: 'maxn' was not declared in this scope
 ll num[maxn];
        ^
0_0_22206559_16273.cpp:14:8: error: 'maxn' was not declared in this scope
 ll sum[maxn<<2];//求和
        ^
0_0_22206559_16273.cpp:15:8: error: 'maxn' was not declared in this scope
 ll add[maxn<<2];//记录应该增加的值,有可能为?int se[maxn<<2];//用来标记每个节点,为-1则表示没有标记,否则为标记;
        ^
0_0_22206559_16273.cpp: In function 'void Pushup(int)':
0_0_22206559_16273.cpp:19:5: error: 'sum' was not declared in this scope
     sum[rt]=sum[rt<<1]+sum[rt<<1|1];
     ^
0_0_22206559_16273.cpp:20:5: error: 'add' was not declared in this scope
     add[rt]=add[rt<<1]+add[rt<<1|1];
     ^
0_0_22206559_16273.cpp: At global scope:
0_0_22206559_16273.cpp:23:5: error: expected initializer before 'if'
     if(se[rt]!=-1) //已经标记过,该区间被改变?
     ^
0_0_22206559_16273.cpp:29:1: error: expected declaration before '}' token
 }
 ^


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-23 05:28:25, Gzip enabled