0_0_35061025_32544.cpp:5:1: error: 'struct_Seg_Tree' does not name a type
struct_Seg_Tree{
^
0_0_35061025_32544.cpp:15:2: error: 'tt' does not name a type
}tt[1000000];
^
0_0_35061025_32544.cpp: In function 'long long int build(int, int, int)':
0_0_35061025_32544.cpp:19:4: error: 'tt' was not declared in this scope
tt[idx].left=l;
^
0_0_35061025_32544.cpp:25:31: error: 'mid' was not declared in this scope
return tt[idx].sum=build(l,mid,LL(idx)+build(mid+1,r,RR(idx)));
^
0_0_35061025_32544.cpp: In function 'void update(int, int, int, int)':
0_0_35061025_32544.cpp:29:10: error: 'tt' was not declared in this scope
if(l<=tt[idx].left&&r>=tt[idx].right){
^
0_0_35061025_32544.cpp:34:7: error: 'tt' was not declared in this scope
if(tt[idx].add){
^
0_0_35061025_32544.cpp:35:19: error: request for member 'sum' in '(idx << 1)', which is of non-class type 'int'
tt[LL(idx).sum]+=(long long)tt[LL(idx)].caldis()*tt[idx].add;
^
0_0_35061025_32544.cpp:36:19: error: request for member 'sum' in '((idx << 1) | 1)', which is of non-class type 'int'
tt[RR(idx).sum]++(long long)tt[RR(idx)].caldis()*tt[idx].add;
^
0_0_35061025_32544.cpp:36:26: error: expected primary-expression before 'long'
tt[RR(idx).sum]++(long long)tt[RR(idx)].caldis()*tt[idx].add;
^
0_0_35061025_32544.cpp:42:12: error: 'tt' was not declared in this scope
int mid=tt[idx].calmid();
^
0_0_35061025_32544.cpp: In function 'long long int query(int, int, int)':
0_0_35061025_32544.cpp:49:12: error: 'tt' was not declared in this scope
if(l==tt[idx].left&&r==tt[idx].right){
^
0_0_35061025_32544.cpp:52:9: error: 'tt' was not declared in this scope
if(tt[idx].add){
^
0_0_35061025_32544.cpp:59:14: error: 'tt' was not declared in this scope
int mid=tt[idx].calmid();
^
0_0_35061025_32544.cpp:65:59: error: expected ')' before ';' token
return query(l,mid,LL(idx)+query(mid+1,r,RR(idx));
^
0_0_35061025_32544.cpp: In function 'int main()':
0_0_35061025_32544.cpp:81:42: error: 'pirntf' was not declared in this scope
pirntf("lld\n",query(a,b,1));
^
|