Problem segmenttree
User jmuzhen
Submission Time 2024-09-24 16:22:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:9:9: error: expected ‘)’ before ‘,’ token
9 | node(_s, _e) {
| ~ ^
| )
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:42:30: error: new initializer expression list treated as compound expression [-fpermissive]
42 | node *root = new node(0, n-1);
| ^
segmenttree.cpp:42:30: error: no matching function for call to ‘node::node(int)’
segmenttree.cpp:5:8: note: candidate: ‘node::node()’
5 | struct node {
| ^~~~
segmenttree.cpp:5:8: note: candidate expects 0 arguments, 1 provided
segmenttree.cpp:5:8: note: candidate: ‘constexpr node::node(const node&)’
segmenttree.cpp:5:8: note: no known conversion for argument 1 from ‘int’ to ‘const node&’
segmenttree.cpp:5:8: note: candidate: ‘constexpr node::node(node&&)’
segmenttree.cpp:5:8: note: no known conversion for argument 1 from ‘int’ to ‘node&&’
segmenttree.cpp:48:8: error: exp