Problem segmenttree2
User Tyx2019
Submission Time 2023-11-26 21:01:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp: In member function ‘void node::update(long long int, long long int, long long int)’:
segmenttree2.cpp:51:13: error: ‘M’ was not declared in this scope
51 | r->val+=(M-S+1)*V;
| ^