gap.cpp: In function 'll findGap(int, int)':
gap.cpp:25:27: error: 'maks' was not declared in this scope
25 | ll mini=0LL, maxi=maks+1LL;
| ^~~~
gap.cpp:26:25: error: 'n' was not declared in this scope
26 | for(int i=0; i<(n+1)/2; ++i) {
| ^
gap.cpp:32:24: error: 'n' was not declared in this scope
32 | for(int i=1; i<n; ++i) {
| ^
gap.cpp:33:18: error: reference to 'max' is ambiguous
33 | maxi=max(maxi, a[i]-a[i-1]);
| ^~~
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: candidates are: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from gap.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
gap.cpp:20:10: note: 'const ll max'
20 | const ll max=(ll)1e18;
| ^~~
gap.cpp:38:17: error: 'maks' was not declared in this scope
38 | MinMax(1LL, maks, mini, maxi);
| ^~~~
gap.cpp:41:36: error: 'n' was not declared in this scope
41 | ll x=ceil((maxi-mini+1LL)/((ll)n-1LL));
| ^
gap.cpp:51:9: error: reference to 'max' is ambiguous
51 | max(maxi, v[i]-v[i-1]);
| ^~~
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: candidates are: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from gap.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
gap.cpp:20:10: note: 'const ll max'
20 | const ll max=(ll)1e18;
| ^~~