gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:16:28: error: 'max' was not declared in this scope
m=max(m,a[i]-a[i-1]);
^
gap.cpp:16:28: 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:19:28: error: 'max' was not declared in this scope
m=max(m,a[i]-a[i-1]);
^
gap.cpp:19:28: 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)
^