Problem snowcow
User eulerleonhardfan
Submission Time 2024-01-15 18:27:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snowcow.cpp:80:3: error: no matching function for call to ‘node::node()’
80 | } root;
| ^~~~
snowcow.cpp:33:2: note: candidate: ‘node::node(long long int, long long int)’
33 | node (int s, int e) {
| ^~~~
snowcow.cpp:33:2: note: candidate expects 2 arguments, 0 provided
snowcow.cpp:29:8: note: candidate: ‘constexpr node::node(const node&)’
29 | struct node {
| ^~~~
snowcow.cpp:29:8: note: candidate expects 1 argument, 0 provided
snowcow.cpp:29:8: note: candidate: ‘constexpr node::node(node&&)’
snowcow.cpp:29:8: note: candidate expects 1 argument, 0 provided
snowcow.cpp: In function ‘int32_t main()’:
snowcow.cpp:84:26: error: no match for ‘operator=’ (operand types are ‘node’ and ‘node*’)
84 | root = new node(0, 1e5+5);
| ^
snowcow.cpp:29:8: note: candidate: ‘constexpr node& node::operator=(const node&)’
29 | struct node {
| ^~~~
snow