Problem | treecutting |
---|---|
User | ZivTheONe |
Submission Time | 2024-05-28 11:51:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
treecutting.cpp: In member function ‘ll Solution::depths1(ll, ll)’:
treecutting.cpp:50:24: error: ‘depths’ was not declared in this scope; did you mean ‘depths1’?
50 | nodes[curr].change( depths(child, curr), child );
| ^~~~~~
| depths1
treecutting.cpp: In member function ‘void Solution::d2pthss(ll, ll)’:
treecutting.cpp:58:76: error: request for member ‘big2’ in ‘parent’, which is of non-class type ‘ll’ {aka ‘long long int’}
58 | if (curr == nodes[parent].big1.second) nodes[curr].change( nodes[parent.big2.first + 1], parent );
| ^~~~
treecutting.cpp:59:76: error: request for member ‘big1’ in ‘parent’, which is of non-class type ‘ll’ {aka ‘long long int’}
59 | else nodes[curr].change( nodes[parent.big1.first + 1], parent );
|