Problem horses
User shoryu386
Submission Time 2023-05-10 07:51:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

horses.cpp: In constructor ‘node::node(int, int, bool)’:
horses.cpp:19:21: error: no matching function for call to ‘node::node(int&, long long int&)’
19 | l = new node(x, m);
| ^
horses.cpp:15:2: note: candidate: ‘node::node(int, int, bool)’
15 | node(int x, int y, bool readFromX){
| ^~~~
horses.cpp:15:2: note: candidate expects 3 arguments, 2 provided
horses.cpp:9:8: note: candidate: ‘constexpr node::node(const node&)’
9 | struct node{
| ^~~~
horses.cpp:9:8: note: candidate expects 1 argument, 2 provided
horses.cpp:9:8: note: candidate: ‘constexpr node::node(node&&)’
horses.cpp:9:8: note: candidate expects 1 argument, 2 provided
horses.cpp:20:23: error: no matching function for call to ‘node::node(long long int, int&)’
20 | r = new node(m+1, y);
| ^
horses.cpp:15:2: note: candidate: ‘node::node(int, int, bool)’
15 | node(int x, i