poklon.cpp: In function 'void upd(int, int, int, int, int, int)':
poklon.cpp:38:12: error: 's' was not declared in this scope
if(s>r || e<l)return 0;
^
poklon.cpp:38:19: error: 'e' was not declared in this scope
if(s>r || e<l)return 0;
^
poklon.cpp:38:30: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(s>r || e<l)return 0;
^
poklon.cpp:39:12: error: 's' was not declared in this scope
if(s<=l && e>=r)return tree[node][t];
^
poklon.cpp:39:20: error: 'e' was not declared in this scope
if(s<=l && e>=r)return tree[node][t];
^
poklon.cpp:39:44: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(s<=l && e>=r)return tree[node][t];
^
poklon.cpp:40:35: error: 's' was not declared in this scope
return query(node*2,l,mid,s,e,t)+query(node*2+1,mid+1,r,s,e,t);
^
poklon.cpp:40:37: error: 'e' was not declared in this scope
return query(node*2,l,mid,s,e,t)+query(node*2+1,mid+1,r,s,e,t);
^
poklon.cpp:40:16: error: 'query' was not declared in this scope
return query(node*2,l,mid,s,e,t)+query(node*2+1,mid+1,r,s,e,t);
^~~~~
poklon.cpp:40:70: error: return-statement with a value, in function returning 'void' [-fpermissive]
return query(node*2,l,mid,s,e,t)+query(node*2+1,mid+1,r,s,e,t);
^
poklon.cpp: In function 'void solve()':
poklon.cpp:70:33: error: 'query' was not declared in this scope
ans[id]=query(1,0,n,0,l-1,1)-query(1,0,n,0,l-1,0);
^~~~~