0_0_37124666_531.cpp:27:35: error: expected ',' or '...' before '+' token
void chanpoint(int n,int val,int l+1,int r,int pos){
^
0_0_37124666_531.cpp: In function 'void chanpoint(int, int, int)':
0_0_37124666_531.cpp:28:11: error: 'r' was not declared in this scope
if(l==r){a[pos]=b[pos]=val;return;}
^
0_0_37124666_531.cpp:28:16: error: 'pos' was not declared in this scope
if(l==r){a[pos]=b[pos]=val;return;}
^
0_0_37124666_531.cpp:29:16: error: 'r' was not declared in this scope
int mid=(l+r)>>1;
^
0_0_37124666_531.cpp:30:38: error: 'pos' was not declared in this scope
if(n<=mid) chanpoint(n,val,l,mid,pos<<1);
^
0_0_37124666_531.cpp:31:34: error: 'pos' was not declared in this scope
else chanpoint(n,val,mid+1,r,pos<<1|1);
^
0_0_37124666_531.cpp:32:16: error: 'pos' was not declared in this scope
pushup(l,r,pos);
^
0_0_37124666_531.cpp: In function 'int main()':
0_0_37124666_531.cpp:59:60: error: too many arguments to function 'void chanpoint(int, int, int)'
scanf("%d%d",&x,&y),++x,chanpoint(x,y,1,n,1);
^
0_0_37124666_531.cpp:27:6: note: declared here
void chanpoint(int n,int val,int l+1,int r,int pos){
^
|