Problem treecutting
User FIips
Submission Time 2026-03-11 23:53:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp:4:13: error: expected ‘,’ or ‘;’ before ‘long’
4 | #define int long long
| ^~~~
treecutting.cpp:10:1: note: in expansion of macro ‘int’
10 | int dist[MAX];
| ^~~
treecutting.cpp: In function ‘void dfs(long long int)’:
treecutting.cpp:16:6: error: ‘dist’ was not declared in this scope; did you mean ‘it’?
16 | if(dist[p] + 1 < dist[it]) {
| ^~~~
| it
treecutting.cpp: In function ‘int32_t main()’:
treecutting.cpp:28:7: error: ‘dist’ was not declared in this scope
28 | fill(dist, dist + n + 1, inf);
| ^~~~
treecutting.cpp:28:27: error: ‘inf’ was not declared in this scope; did you mean ‘ynf’?
28 | fill(dist, dist + n + 1, inf);
| ^~~
| ynf