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
}
^
|