Problem segmenttree
User theRealLucasXD
Submission Time 2025-09-20 16:58:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:22:22: error: ISO C++ forbids declaration of ‘update’ with no type [-fpermissive]
22 | update(int p, int v) {
| ^
segmenttree.cpp: In constructor ‘node::node(long long int, long long int)’:
segmenttree.cpp:10:8: error: expression cannot be used as a function
10 | s(_s), e(_e), m((_s + _e)/2), val(0) {
| ^
segmenttree.cpp:10:15: error: expression cannot be used as a function
10 | s(_s), e(_e), m((_s + _e)/2), val(0) {
| ^
segmenttree.cpp:10:31: error: expression cannot be used as a function
10 | s(_s), e(_e), m((_s + _e)/2), val(0) {
| ^
segmenttree.cpp:10:39: error: expression cannot be used as a function
10 | s(_s), e(_e), m((_s + _e)/2), val(0) {
| ^