Problem manycolours
User haydendoo
Submission Time 2023-02-14 19:51:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

manycolours.cpp: In function ‘void solve()’:
manycolours.cpp:383:6: error: ‘inc’ was not declared in this scope; did you mean ‘anc’?
383 | if(inc[anc]+1<=in[b]) colourdist+=root->range_sum(in[anc]+1,in[b]), no+=root2->range_sum(in[anc]+1,in[b]);
| ^~~
| anc