Problem | segmenttree |
---|---|
User | justin271828 |
Submission Time | 2024-09-30 16:23:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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);
| ~~^
| |
| int
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linu