0_0_38688693_1658.cpp: In member function 'void SGT::upd(long long int)':
0_0_38688693_1658.cpp:124:25: error: 'sum' was not declared in this scope
124 | void upd(int o){sum(o)=sum(lc(o))+sum(rc(o));}
| ^~~
0_0_38688693_1658.cpp:124:38: error: expression cannot be used as a function
124 | void upd(int o){sum(o)=sum(lc(o))+sum(rc(o));}
| ~~^~~
0_0_38688693_1658.cpp:124:49: error: expression cannot be used as a function
124 | void upd(int o){sum(o)=sum(lc(o))+sum(rc(o));}
| ~~^~~
0_0_38688693_1658.cpp: In member function 'void SGT::build(long long int&, long long int, long long int)':
0_0_38688693_1658.cpp:127:26: error: 'sum' was not declared in this scope
127 | if(l==r){sum(o)=val[l];return ;}
| ^~~
0_0_38688693_1658.cpp:129:25: error: expression cannot be used as a function
129 | build(lc(o),l,mid);
| ~~^~~
0_0_38688693_1658.cpp:130:25: error: expression cannot be used as a function
130 | build(rc(o),mid+1,r);
| ~~^~~
0_0_38688693_1658.cpp: In member function 'void SGT::modify(long long int, long long int&, long long int, long long int, long long int, long long int, long long int)':
0_0_38688693_1658.cpp:136:17: error: 'sum' was not declared in this scope
136 | sum(o)+=(min(r,qr)-max(l,ql)+1)*k;
| ^~~
0_0_38688693_1658.cpp:137:37: error: expression cannot be used as a function
137 | if(ql<=l&&r<=qr){tag(o)+=k;return ;}
| ~~~^~~
0_0_38688693_1658.cpp:139:38: error: expression cannot be used as a function
139 | if(ql<=mid) modify(lc(lst),lc(o),l,mid,ql,qr,k);
| ~~^~~~~
0_0_38688693_1658.cpp:139:46: error: expression cannot be used as a function
139 | if(ql<=mid) modify(lc(lst),lc(o),l,mid,ql,qr,k);
| ~~^~~
0_0_38688693_1658.cpp:140:37: error: expression cannot be used as a function
140 | if(qr>mid) modify(rc(lst),rc(o),mid+1,r,ql,qr,k);
| ~~^~~~~
0_0_38688693_1658.cpp:140:45: error: expression cannot be used as a function
140 | if(qr>mid) modify(rc(lst),rc(o),mid+1,r,ql,qr,k);
| ~~^~~
0_0_38688693_1658.cpp: In member function 'long long int SGT::query(long long int, long long int, long long int, long long int, long long int, long long int)':
0_0_38688693_1658.cpp:145:41: error: 'sum' was not declared in this scope
145 | if(ql<=l&&r<=qr) return sum(o)+(min(r,qr)-max(ql,l)+1)*TAG;
| ^~~
0_0_38688693_1658.cpp:147:42: error: expression cannot be used as a function
147 | if(ql<=mid) ans+=query(lc(o),l,mid,ql,qr,TAG+tag(o));
| ~~^~~
0_0_38688693_1658.cpp:147:65: error: expression cannot be used as a function
147 | if(ql<=mid) ans+=query(lc(o),l,mid,ql,qr,TAG+tag(o));
| ~~~^~~
0_0_38688693_1658.cpp:148:41: error: expression cannot be used as a function
148 | if(qr>mid) ans+=query(rc(o),mid+1,r,ql,qr,TAG+tag(o));
| ~~^~~
0_0_38688693_1658.cpp:148:66: error: expression cannot be used as a function
148 | if(qr>mid) ans+=query(rc(o),mid+1,r,ql,qr,TAG+tag(o));
| ~~~^~~
|