Problem segmenttree2
User shawn
Submission Time 2024-06-28 16:42:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp: In function ‘void update(long long int, long long int, long long int)’:
segmenttree2.cpp:15:9: error: ‘fenw’ was not declared in this scope
15 | up(x,v,fenw);
| ^~~~
segmenttree2.cpp:17:16: error: ‘fenw2’ was not declared in this scope
17 | up(x,-(x-1)*v,fenw2);
| ^~~~~
segmenttree2.cpp: In function ‘long long int query(long long int, long long int)’:
segmenttree2.cpp:21:19: error: ‘fenw’ was not declared in this scope
21 | long long a=qu(y,fenw)*y+qu(y,fenw2);
| ^~~~
segmenttree2.cpp:21:32: error: ‘fenw2’ was not declared in this scope
21 | long long a=qu(y,fenw)*y+qu(y,fenw2);
| ^~~~~