Problem | cousin |
---|---|
User | Hijackedsoul |
Submission Time | 2024-03-07 16:49:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cousin.cpp: In function ‘void init(int, int*)’:
cousin.cpp:65:7: error: ‘x’ was not declared in this scope
65 | adj[x].push_back(P[i]);
| ^
cousin.cpp:69:22: error: ‘n’ was not declared in this scope
69 | root[0]=new node(0, n+5);
| ^
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*