Problem cousin
User Hijackedsoul
Submission Time 2024-03-07 16:54:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cousin.cpp: In function ‘void init(int, int*)’:
cousin.cpp:72:29: error: no matching function for call to ‘node::node(node*&)’
72 | root[i]=new node(root[i-1]);
| ^
cousin.cpp:35:2: note: candidate: ‘node::node(int, int)’
35 | node(int S, int E){
| ^~~~
cousin.cpp:35:2: note: candidate expects 2 arguments, 1 provided
cousin.cpp:31:8: note: candidate: ‘constexpr node::node(const node&)’
31 | struct node{
| ^~~~
cousin.cpp:31:8: note: no known conversion for argument 1 from ‘node*’ to ‘const node&’
cousin.cpp:31:8: note: candidate: ‘constexpr node::node(node&&)’
cousin.cpp:31:8: note: no known conversion for argument 1 from ‘node*’ to ‘node&&’