Problem | treecutting |
---|---|
User | samvar0907 |
Submission Time | 2024-01-24 01:37:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
treecutting.cpp: In function ‘int max_largest_distance(int, const std::vector<std::pair<int, int> >&)’:
treecutting.cpp:37:14: error: ‘max_element’ was not declared in this scope
37 | int x1 = max_element(max_distance_from_x1.begin() + 1, max_distance_from_x1.end()) - max_distance_from_x1.begin();
| ^~~~~~~~~~~