jumps.cpp: In function 'int minimum_jumps(int, int, int, int)':
jumps.cpp:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << min(C, D) - max(A, B);
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
from jumps.cpp:2:
/usr/include/c++/11/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
jumps.cpp:12:17: error: 'min' was not declared in this scope
12 | cout << min(C, D) - max(A, B);
| ^~~
jumps.cpp:12:17: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:62,
from jumps.h:1,
from jumps.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3455:5: note: 'std::min'
3455 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from /usr/include/c++/11/algorithm:64,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from jumps.cpp:2:
/usr/include/c++/11/bits/ranges_algo.h:2957:29: note: 'std::ranges::min'
2957 | inline constexpr __min_fn min{};
| ^~~
jumps.cpp:12:29: error: 'max' was not declared in this scope
12 | cout << min(C, D) - max(A, B);
| ^~~
jumps.cpp:12:29: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:62,
from jumps.h:1,
from jumps.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: 'std::max'
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from /usr/include/c++/11/algorithm:64,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from jumps.cpp:2:
/usr/include/c++/11/bits/ranges_algo.h:3011:29: note: 'std::ranges::max'
3011 | inline constexpr __max_fn max{};
| ^~~