gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:23:26: error: 'min' was not declared in this scope
MinMax(x + 1,min( x + w * d, (ll)1e18),&p , &q);
^~~
gap.cpp:23:26: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from gap.cpp:3:
/usr/include/c++/7/bits/stl_algo.h:3456:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^~~
gap.cpp:25:19: error: 'max' was not declared in this scope
ans = max(ans, p - x);
^~~
gap.cpp:25:19: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from gap.cpp:3:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^~~