Problem | segmenttree |
---|---|
User | jmuzhen |
Submission Time | 2025-09-20 16:22:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:7:13: error: ISO C++ forbids in-class initialization of non-const static member ‘node::MN_DEFAULT’
7 | static int MN_DEFAULT = 1e9;
| ^~~~~~~~~~
segmenttree.cpp:44:2: error: expected ‘;’ after struct definition
44 | }
| ^
| ;
segmenttree.cpp: In constructor ‘node::node(int, int, int)’:
segmenttree.cpp:10:8: error: request for member ‘s’ in ‘(node*)this’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
10 | this.s = s; this.e = e;
| ^
segmenttree.cpp:10:20: error: request for member ‘e’ in ‘(node*)this’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
10 | this.s = s; this.e = e;
| ^
segmenttree.cpp:11:8: error: request for member ‘m’ in ‘(node*)this’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
11 | this.m = (s+e)/2;
| ^
segmenttree.cpp:12:8: error: req