| Problem | segmenttree |
|---|---|
| User | chickengoat |
| Submission Time | 2025-12-03 16:25:52 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:5:16: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive]
5 | node(ll s,ll e) : S(s),E(e) {
| ^
segmenttree.cpp: In function ‘int node(ll, ll)’:
segmenttree.cpp:5:20: error: only constructors take member initializers
5 | node(ll s,ll e) : S(s),E(e) {
| ^
segmenttree.cpp:7:3: error: ‘val’ was not declared in this scope
7 | val=init[s];
| ^~~
segmenttree.cpp:7:7: error: ‘init’ was not declared in this scope; did you mean ‘int’?
7 | val=init[s];
| ^~~~
| int
segmenttree.cpp:8:3: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
8 | return;
| ^~~~~~
segmenttree.cpp:10:2: error: ‘M’ was not declared in this scope
10 | M=(S+E)/2;
| ^
segmenttree.cpp:10:5: error: ‘S’ was not declared in this scope
10 | M=(S+E)/2;
| ^
seg