Problem treecutting
User Codula
Submission Time 2023-01-22 22:32:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp: In function ‘int32_t main()’:
treecutting.cpp:57:16: error: ‘dx’ was not declared in this scope
57 | if(deg[i]>=3)dx=i;
| ^~
treecutting.cpp:59:6: error: ‘dx’ was not declared in this scope
59 | dfs(dx,-1);
| ^~