0_0_33353271_14371.cpp:24:7: error: 'maxn' was not declared in this scope
int p[maxn<<1|1];
^
0_0_33353271_14371.cpp:26:7: error: 'maxn' was not declared in this scope
int f[maxn<<1|1];
^
0_0_33353271_14371.cpp:28:9: error: 'maxn' was not declared in this scope
int rel[maxn<<1|1];
^
0_0_33353271_14371.cpp:34:11: error: 'maxn' was not declared in this scope
bool tree[maxn<<2];
^
0_0_33353271_14371.cpp:36:9: error: 'maxn' was not declared in this scope
int num[maxn<<2];
^
0_0_33353271_14371.cpp: In function 'int cmp(int, int)':
0_0_33353271_14371.cpp:42:9: error: 'p' was not declared in this scope
return p[x]<p[y];
^
0_0_33353271_14371.cpp: In function 'int deal()':
0_0_33353271_14371.cpp:52:2: error: 'rel' was not declared in this scope
rel[f[0]]=k=1;
^
0_0_33353271_14371.cpp:52:6: error: 'f' was not declared in this scope
rel[f[0]]=k=1;
^
0_0_33353271_14371.cpp:56:6: error: 'p' was not declared in this scope
if(p[f[i]]!=p[f[i-1]])
^
0_0_33353271_14371.cpp: In function 'void tadd(int, int, int, int, int)':
0_0_33353271_14371.cpp:74:3: error: 'num' was not declared in this scope
num[v]++;
^
0_0_33353271_14371.cpp:80:5: error: 'tree' was not declared in this scope
if(tree[v]==false){
^
0_0_33353271_14371.cpp:84:3: error: 'num' was not declared in this scope
num[ll]=num[rr]=0;
^
0_0_33353271_14371.cpp: In function 'int query(int, int, int, int)':
0_0_33353271_14371.cpp:100:5: error: 'tree' was not declared in this scope
if(tree[v]==false || l==r) return num[v];
^
0_0_33353271_14371.cpp:100:36: error: 'num' was not declared in this scope
if(tree[v]==false || l==r) return num[v];
^
0_0_33353271_14371.cpp:102:21: error: 'num' was not declared in this scope
if(x<=tmid) return num[v]+query(x,l,tmid,ll);
^
0_0_33353271_14371.cpp:104:14: error: 'num' was not declared in this scope
else return num[v]+query(x,tmid+1,r,rr);
^
0_0_33353271_14371.cpp: In function 'int main()':
0_0_33353271_14371.cpp:122:33: error: 'p' was not declared in this scope
for(i=0;i<nn;i++) scanf("%d",&p[i]);
^
0_0_33353271_14371.cpp:124:21: error: 'f' was not declared in this scope
for(i=0;i<nn;i++) f[i]=i;
^
0_0_33353271_14371.cpp:126:8: error: 'f' was not declared in this scope
sort(f,f+nn,cmp);
^
0_0_33353271_14371.cpp:140:3: error: 'tree' was not declared in this scope
tree[1]=false;
^
0_0_33353271_14371.cpp:142:3: error: 'num' was not declared in this scope
num[1]=0;
^
0_0_33353271_14371.cpp:154:9: error: 'rel' was not declared in this scope
tadd(rel[i],rel[i|1],1,cnt,1);
^
0_0_33353271_14371.cpp:162:11: error: 'p' was not declared in this scope
if(tmp<p[f[0]]) tmp=0;
^
0_0_33353271_14371.cpp:164:33: error: 'rel' was not declared in this scope
else if(tmp==p[f[nn-1]]) tmp=rel[f[nn-1]];
^
0_0_33353271_14371.cpp:166:32: error: 'rel' was not declared in this scope
else if(tmp>p[f[nn-1]]) tmp=rel[f[nn-1]]+1;
^
0_0_33353271_14371.cpp:178:11: error: 'rel' was not declared in this scope
tmp=rel[f[mid]];
^
0_0_33353271_14371.cpp:186:11: error: 'rel' was not declared in this scope
tmp=rel[f[mid]]+1;
^
|