gap.cpp: In function 'long long int findGap(long long int, long long int)':
gap.cpp:12:22: error: 'max' was not declared in this scope; did you mean 'std::max'?
12 | ans = max(ans, max(currmi - mi, ma - currma));
| ^~~
| std::max
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gap.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
gap.cpp:12:13: error: 'max' was not declared in this scope; did you mean 'std::max'?
12 | ans = max(ans, max(currmi - mi, ma - currma));
| ^~~
| std::max
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gap.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
gap.cpp:15:27: error: 'mx' was not declared in this scope; did you mean 'mi'?
15 | return ans = max(ans, mx - mn);
| ^~
| mi
gap.cpp:15:32: error: 'mn' was not declared in this scope; did you mean 'mi'?
15 | return ans = max(ans, mx - mn);
| ^~
| mi
gap.cpp:15:18: error: 'max' was not declared in this scope; did you mean 'std::max'?
15 | return ans = max(ans, mx - mn);
| ^~~
| std::max
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gap.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~