/in/foo.cc: In function 'void build(ll, ll, ll)':
/in/foo.cc:39:10: error: 'a' was not declared in this scope
sum[k]=a[l];
^
/in/foo.cc:42:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
ll mid=l+r>>1;
~^~
/in/foo.cc: In function 'void change(ll, ll, ll, ll, ll)':
/in/foo.cc:53:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
register ll mid=l+r>>1;
~^~
/in/foo.cc: At global scope:
/in/foo.cc:58:88: error: storage class 'register' invalid for function 'query'
register ll query(register ll k,register ll l,register ll r,register ll x,register ll y){
^
/in/foo.cc: In function 'll query(ll, ll, ll, ll, ll)':
/in/foo.cc:61:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
register ll mid=l+r>>1;
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:87:48: error: 'updatel' was not declared in this scope
if(t==1)read(x),read(y),read(z),updatel(x,y,z);
^
/in/foo.cc:89:43: error: 'updatet' was not declared in this scope
else if(t==3)read(x),read(z),updatet(x,z);
^
/in/foo.cc:90:28: error: 'askt' was not declared in this scope
else read(x),print(askt(x)),putchar('\n');
^