Problem treecutting
User samvar0907
Submission Time 2024-01-24 01:53:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp: In function ‘int max_largest_distance_subtask5(int, const std::vector<std::pair<int, int> >&)’:
treecutting.cpp:70:48: error: too many arguments to function ‘int find_diameter(const std::vector<std::vector<int> >&)’
70 | int dist_a = find_diameter(graph, u);
| ^
treecutting.cpp:29:5: note: declared here
29 | int find_diameter(const vector<vector<int>>& graph) {
| ^~~~~~~~~~~~~
treecutting.cpp:71:48: error: too many arguments to function ‘int find_diameter(const std::vector<std::vector<int> >&)’
71 | int dist_b = find_diameter(graph, v);
| ^
treecutting.cpp:29:5: note: declared here
29 | int find_diameter(const vector<vector<int>>& graph) {
| ^~~~~~~~~~~~~
treecutting.cpp:76:88: error: too many arguments to functi