0_0_15972140_22675.cpp:2:7: error: 'NN' was not declared in this scope
int a[NN],b[NN],lb,n,m;
^
0_0_15972140_22675.cpp:2:13: error: 'NN' was not declared in this scope
int a[NN],b[NN],lb,n,m;
^
0_0_15972140_22675.cpp:6:7: error: 'NN' was not declared in this scope
}tree[NN*25];
^
0_0_15972140_22675.cpp:8:10: error: 'NN' was not declared in this scope
int root[NN];
^
0_0_15972140_22675.cpp: In function 'int search(int)':
0_0_15972140_22675.cpp:15:4: error: 'b' was not declared in this scope
if(b[mid]<=x) l=mid;
^
0_0_15972140_22675.cpp: In function 'int build(int, int)':
0_0_15972140_22675.cpp:23:1: error: 'tree' was not declared in this scope
tree[k].s=0;
^
0_0_15972140_22675.cpp: In function 'int change(int, int, int, int)':
0_0_15972140_22675.cpp:33:1: error: 'tree' was not declared in this scope
tree[k]=tree[rt];
^
0_0_15972140_22675.cpp: In function 'int query(int, int, int, int, int)':
0_0_15972140_22675.cpp:68:3: error: 'tree' was not declared in this scope
L=tree[L].l;
^
0_0_15972140_22675.cpp:74:6: error: 'tree' was not declared in this scope
ans+=tree[tree[R].l].s-tree[tree[L].l].s;
^
0_0_15972140_22675.cpp:82:1: error: expected '}' before 'else'
else return ans+tree[R].s-tree[L].s;
^
0_0_15972140_22675.cpp:82:17: error: 'tree' was not declared in this scope
else return ans+tree[R].s-tree[L].s;
^
0_0_15972140_22675.cpp: At global scope:
0_0_15972140_22675.cpp:84:1: error: expected declaration before '}' token
}
^
|