Problem segmenttree
User justin271828
Submission Time 2024-09-30 16:23:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:29:2: error: expected ‘;’ after struct definition
29 | }
| ^
| ;
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:34:14: error: no matching function for call to ‘node::node()’
34 | struct node x;
| ^
segmenttree.cpp:7:2: note: candidate: ‘node::node(int, int)’
7 | node(int _s, int _e) :
| ^~~~
segmenttree.cpp:7:2: note: candidate expects 2 arguments, 0 provided
segmenttree.cpp:4:8: note: candidate: ‘constexpr node::node(const node&)’
4 | struct node{
| ^~~~
segmenttree.cpp:4:8: note: candidate expects 1 argument, 0 provided
segmenttree.cpp:4:8: note: candidate: ‘constexpr node::node(node&&)’
segmenttree.cpp:4:8: note: candidate expects 1 argument, 0 provided
segmenttree.cpp:35:11: error: invalid conversion from ‘int’ to ‘char*’ [-fpermissive]
35 | strcpy(x.s, 0);
| ~~^
| |
|