gap.cpp: In function 'std::vector<long long int> findnum(long long int, long long int)':
gap.cpp:7:5: error: 'MinMax' was not declared in this scope
MinMax(s,e,&a,&b);
^~~~~~
gap.cpp:7:5: note: suggested alternative: 'rindex'
MinMax(s,e,&a,&b);
^~~~~~
rindex
gap.cpp:19:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v1.size();i++){
~^~~~~~~~~~
gap.cpp:22:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v2.size();i++){
~^~~~~~~~~~
gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:33:19: error: 'n' was not declared in this scope
for(int i=1;i<n;i++){
^