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

Compile Error

treecutting.cpp: In function ‘int main()’:
treecutting.cpp:145:21: error: ‘dist’ was not declared in this scope; did you mean ‘dis’?
145 | ans = max(ans, d+ dist[anotherfar]);
| ^~~~
| dis