0_0_35061031_1699.cpp: In function 'long long int build(int, int, int)':
0_0_35061031_1699.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_35061031_1699.cpp: In function 'void update(int, int, int, int)':
0_0_35061031_1699.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_35061031_1699.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_35061031_1699.cpp:36:26: error: expected primary-expression before 'long'
tt[RR(idx).sum]++(long long)tt[RR(idx)].caldis()*tt[idx].add;
^
0_0_35061031_1699.cpp: In function 'long long int query(int, int, int)':
0_0_35061031_1699.cpp:65:59: error: expected ')' before ';' token
return query(l,mid,LL(idx)+query(mid+1,r,RR(idx));
^
0_0_35061031_1699.cpp: In function 'int main()':
0_0_35061031_1699.cpp:81:42: error: 'pirntf' was not declared in this scope
pirntf("lld\n",query(a,b,1));
^
|