gap.cpp: In function 'll findGap(int, int)':
gap.cpp:13:31: error: 'max' was not declared in this scope
ret = max(ret, new_l - l);
^
gap.cpp:13:31: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:24:33: error: 'max' was not declared in this scope
ret = max(ret, new_l - l);
^
gap.cpp:24:33: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:28:25: error: 'max' was not declared in this scope
ret = max(ret, r - l);
^
gap.cpp:28:25: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^