Problem fencing2
User Pan
Submission Time 2024-10-31 18:59:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fencing2.cpp:39:8: error: ‘x’ was not declared in this scope
39 | ll sum(x) {return x*(x+1)/2;}
| ^
fencing2.cpp: In member function ‘void node::propogate()’:
fencing2.cpp:61:23: error: ‘sum’ cannot be used as a function
61 | up += sum(e-s+1)*lazy;
| ^
fencing2.cpp:62:25: error: ‘sum’ cannot be used as a function
62 | down += sum(e-s+1)*lazy;
| ^