0_0_38403470_27707.cpp: In function 'void modify(int&, int, int, int, int, int, ll)':
0_0_38403470_27707.cpp:67:8: error: expected unqualified-id before '[' token
auto &[ls, rs, sum, lazy]=tr[root];
^
0_0_38403470_27707.cpp:67:8: error: expected initializer before '[' token
0_0_38403470_27707.cpp:68:2: error: 'sum' was not declared in this scope
sum+=1ll*getInterLen(l, r, L, R)*d;
^
0_0_38403470_27707.cpp:71:3: error: 'lazy' was not declared in this scope
lazy+=d;
^
0_0_38403470_27707.cpp:75:19: error: 'ls' was not declared in this scope
if(L<=mid)modify(ls, tr[ori].ls, l, mid, L, R, d);
^
0_0_38403470_27707.cpp:76:18: error: 'rs' was not declared in this scope
if(R>mid)modify(rs, tr[ori].rs, mid+1, r, L, R, d);
^
0_0_38403470_27707.cpp: In function 'll query(int, int, int, int, int, ll)':
0_0_38403470_27707.cpp:80:7: error: expected unqualified-id before '[' token
auto [ls, rs, sum, lazy]=tr[root];
^
0_0_38403470_27707.cpp:81:23: error: 'sum' was not declared in this scope
if(L<=l&&r<=R)return sum+totLazy*(r-l+1);
^
0_0_38403470_27707.cpp:84:23: error: 'ls' was not declared in this scope
if(L<=mid)ans+=query(ls, l, mid, L, R, totLazy+lazy);
^
0_0_38403470_27707.cpp:84:49: error: 'lazy' was not declared in this scope
if(L<=mid)ans+=query(ls, l, mid, L, R, totLazy+lazy);
^
0_0_38403470_27707.cpp:85:22: error: 'rs' was not declared in this scope
if(R>mid)ans+=query(rs, mid+1, r, L, R, totLazy+lazy);
^
0_0_38403470_27707.cpp:85:50: error: 'lazy' was not declared in this scope
if(R>mid)ans+=query(rs, mid+1, r, L, R, totLazy+lazy);
^
|