0_0_28590002_32501.cpp: In function 'll query(ll, ll, ll, ll, ll)':
0_0_28590002_32501.cpp:29:69: error: invalid operands of types 'll {aka long long int}' and 'll [400400] {aka long long int [400400]}' to binary 'operator-'
else if(num[rt<<1]<l) return query(rt<<1,mid+1,R,l-num[rt<<1],r-num rt<<1]);
^
0_0_28590002_32501.cpp:29:80: error: expected ';' before ']' token
else if(num[rt<<1]<l) return query(rt<<1,mid+1,R,l-num[rt<<1],r-num rt<<1]);
^
0_0_28590002_32501.cpp:29:80: error: expected primary-expression before ']' token
0_0_28590002_32501.cpp:30:5: error: 'else' without a previous 'if'
else return (query(rt<<1,L,mid,l,num[rt<<1])+query(rt<<1|1,mid+1,R,1,r-num[rt<<1]))%mod;
^
0_0_28590002_32501.cpp: In function 'int main()':
0_0_28590002_32501.cpp:43:5: error: expected ',' or ';' before 'for'
for(int i=0;i<cnt2;i++){
^
0_0_28590002_32501.cpp:43:17: error: 'i' was not declared in this scope
for(int i=0;i<cnt2;i++){
^
|