Problem | treecutting |
---|---|
User | JAYLIU |
Submission Time | 2024-02-17 16:23:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
treecutting.cpp: In function ‘int main()’:
treecutting.cpp:10:7: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
10 | if (min(u, v) <= smallestcity) {
| ^~~
| std::min
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from treecutting.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: ‘std::min’ declared here
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
treecutting.cpp:13:7: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
13 | if (max(u, v) >= largestcity) {
| ^~~
| std::max
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,