0_0_33661269_25996.cpp:9:2: error: 'll' does not name a type
ll sum;
^
0_0_33661269_25996.cpp: In function 'void add(int, int, int, int, int&)':
0_0_33661269_25996.cpp:15:11: error: 'struct node' has no member named 'sum'
tree[rt].sum+=a;
^
0_0_33661269_25996.cpp: At global scope:
0_0_33661269_25996.cpp:22:1: error: 'll' does not name a type
ll query(int l,int r,int rt,int L,int R){
^
0_0_33661269_25996.cpp: In function 'int main()':
0_0_33661269_25996.cpp:53:3: error: 'll' was not declared in this scope
ll last=0;
^
0_0_33661269_25996.cpp:56:11: error: 'last' was not declared in this scope
l=min((last+ll)%n+1,(last+rr)%n+1);
^
0_0_33661269_25996.cpp:58:7: error: expected ';' before 'ans'
ll ans=query(l,n,top[r],1,n);
^
0_0_33661269_25996.cpp:59:25: error: 'ans' was not declared in this scope
printf("%lld\n",last=ans);
^
|