xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:19:12: error: 'max' was not declared in this scope
19 | if(max({abs(B[i]-B[i-1]), abs(B[i]-B[i-2]), abs(B[i-1]-B[i-2])}) != d2[i-2]) {
| ^~~
xylophone.cpp:19:12: note: suggested alternatives:
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from xylophone.cpp:2:
/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 xylophone.cpp:2:
/usr/include/c++/11/bits/ranges_algo.h:3011:29: note: 'std::ranges::max'
3011 | inline constexpr __max_fn max{};
| ^~~
xylophone.cpp:26:14: error: 'min' was not declared in this scope
26 | mn = min(mn, B[i]);
| ^~~
xylophone.cpp:26:14: note: suggested alternatives:
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from xylophone.cpp:2:
/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 xylophone.cpp:2:
/usr/include/c++/11/bits/ranges_algo.h:2957:29: note: 'std::ranges::min'
2957 | inline constexpr __min_fn min{};
| ^~~