Problem | collectmushrooms3 |
---|---|
User | FIips |
Submission Time | 2025-02-19 11:35:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
collectmushrooms3.cpp: In constructor ‘node::node(long long int, long long int)’:
collectmushrooms3.cpp:27:10: error: invalid operands of types ‘node*’ and ‘node*’ to binary ‘operator+’
27 | m = (l + r) / 2;
| ~ ^ ~
| | |
| | node*
| node*
collectmushrooms3.cpp: In function ‘int32_t main()’:
collectmushrooms3.cpp:70:20: error: no matching function for call to ‘node::node(long long int)’
70 | node segtree(n - 1);
| ^
collectmushrooms3.cpp:21:2: note: candidate: ‘node::node(long long int, long long int)’
21 | node(int s_, int e_) : s(s_), e(e_) {
| ^~~~
collectmushrooms3.cpp:21:2: note: candidate expects 2 arguments, 1 provided
collectmushrooms3.cpp:13:8: note: candidate: ‘constexpr node::node(const node&)’
13 | struct node {
| ^~~~
collectmushrooms3.cpp:13:8: note: no known conversion for argument 1 from ‘long long