0_0_33211247_32396.cpp:18:7: error: 'maxn' was not declared in this scope
int c[maxn]; //树状数组
^
0_0_33211247_32396.cpp:19:9: error: 'maxn' was not declared in this scope
int vis[maxn]; //vis[i]表示元素i的个数
^
0_0_33211247_32396.cpp: In function 'void update(int, int)':
0_0_33211247_32396.cpp:26:13: error: 'maxn' was not declared in this scope
while(i<maxn){
^
0_0_33211247_32396.cpp:27:9: error: 'c' was not declared in this scope
c[i]+=v;
^
0_0_33211247_32396.cpp: In function 'int sum(int)':
0_0_33211247_32396.cpp:36:9: error: 'res' was not declared in this scope
res+=c[i];
^
0_0_33211247_32396.cpp:36:14: error: 'c' was not declared in this scope
res+=c[i];
^
0_0_33211247_32396.cpp:39:12: error: 'res' was not declared in this scope
return res;
^
0_0_33211247_32396.cpp: In function 'int binarySearch(int)':
0_0_33211247_32396.cpp:44:5: error: expected primary-expression before ',' token
,r=maxn-,mid,tmp;
^
0_0_33211247_32396.cpp:44:6: error: 'r' was not declared in this scope
,r=maxn-,mid,tmp;
^
0_0_33211247_32396.cpp:44:8: error: 'maxn' was not declared in this scope
,r=maxn-,mid,tmp;
^
0_0_33211247_32396.cpp:44:13: error: expected primary-expression before ',' token
,r=maxn-,mid,tmp;
^
0_0_33211247_32396.cpp:44:14: error: 'mid' was not declared in this scope
,r=maxn-,mid,tmp;
^
0_0_33211247_32396.cpp:44:18: error: 'tmp' was not declared in this scope
,r=maxn-,mid,tmp;
^
0_0_33211247_32396.cpp:45:5: error: expected primary-expression before ')' token
){
^
0_0_33211247_32396.cpp: In function 'int main()':
0_0_33211247_32396.cpp:60:16: error: 'vis' was not declared in this scope
memset(vis,,sizeof(vis));
^
0_0_33211247_32396.cpp:60:20: error: expected primary-expression before ',' token
memset(vis,,sizeof(vis));
^
0_0_33211247_32396.cpp:61:16: error: 'c' was not declared in this scope
memset(c,,sizeof(c));
^
0_0_33211247_32396.cpp:61:18: error: expected primary-expression before ',' token
memset(c,,sizeof(c));
^
0_0_33211247_32396.cpp:62:11: error: expected primary-expression before ';' token
n=;
^
0_0_33211247_32396.cpp:63:10: error: 'i' was not declared in this scope
;i<=m;i++){
^
|