Problem rootedlca
User PlayVoltz
Submission Time 2023-09-27 10:00:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rootedlca.cpp: In function ‘void twokdecomp(int, int, int)’:
rootedlca.cpp:24:11: error: request for member ‘first’ in ‘num’, which is of non-class type ‘int’
24 | if (num.first!=par){
| ^~~~~
rootedlca.cpp:25:19: error: request for member ‘first’ in ‘num’, which is of non-class type ‘int’
25 | twokdecomp(num.first, node, dep+1);
| ^~~~~
rootedlca.cpp: In function ‘void dfs(int, int)’:
rootedlca.cpp:60:11: error: request for member ‘first’ in ‘num’, which is of non-class type ‘int’
60 | if (num.first!=par){
| ^~~~~