Problem | cousin |
---|---|
User | Hijackedsoul |
Submission Time | 2024-03-07 16:52:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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&&’
cousin.cpp: In function ‘int count_cousins(int, int)’:
cousin.cpp:78:10: error: ‘x’ was not declared in this scope
78 | int par=x;
| ^