Problem treecutting
User Pan
Submission Time 2024-01-03 14:30:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp: In function ‘std::vector<long long int> longest_path(ll)’:
treecutting.cpp:33:7: error: ‘visited’ was not declared in this scope
33 | if (visited[city]) continue;
| ^~~~~~~
treecutting.cpp:34:3: error: ‘visited’ was not declared in this scope
34 | visited[city] = true;
| ^~~~~~~