| Problem | segmenttree |
|---|---|
| User | ISAAC |
| Submission Time | 2026-09-01 16:22:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In constructor ‘node::node(long long int, long long int)’:
segmenttree.cpp:11:7: error: expression cannot be used as a function
11 | s(_s); e(_e); m=((_s + _e)/2); val(0);
| ^
segmenttree.cpp:11:14: error: expression cannot be used as a function
11 | s(_s); e(_e); m=((_s + _e)/2); val(0);
| ^
segmenttree.cpp:11:39: error: expression cannot be used as a function
11 | s(_s); e(_e); m=((_s + _e)/2); val(0);
| ^
At global scope:
cc1plus: error: ‘::main’ must return ‘int’
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:54:34: error: expected ‘}’ at end of input
54 | cout<<root -> rmq(b,c)<<"\n";}}
| ^
segmenttree.cpp:46:11: note: to match this ‘{’
46 | int main(){
| ^