gap.cpp: In function 'void qur(ll, ll)':
gap.cpp:30:3: error: 'MinMax' was not declared in this scope
MinMax(l,r,&mn,&mx);
^~~~~~
gap.cpp:30:3: note: suggested alternative: 'rindex'
MinMax(l,r,&mn,&mx);
^~~~~~
rindex
gap.cpp:37:10: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
ll m = l+r>>1;
~^~
gap.cpp:38:2: error: 'MinMax' was not declared in this scope
MinMax(l,m,&mn,&mx);
^~~~~~
gap.cpp:38:2: note: suggested alternative: 'rindex'
MinMax(l,m,&mn,&mx);
^~~~~~
rindex
gap.cpp: In function 'll findGap(int, int)':
gap.cpp:59:4: error: 'MinMax' was not declared in this scope
MinMax(s,t,&mn,&mx);
^~~~~~
gap.cpp:59:4: note: suggested alternative: 'rindex'
MinMax(s,t,&mn,&mx);
^~~~~~
rindex
gap.cpp:66:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v1.size()-1;i++) ans = max(ans,v1[i+1]-v1[i]);
~^~~~~~~~~~~~
gap.cpp:72:3: error: 'MinMax' was not declared in this scope
MinMax(s,t,&mn,&mx); v.push_back(mn); v.push_back(mx);
^~~~~~
gap.cpp:72:3: note: suggested alternative: 'rindex'
MinMax(s,t,&mn,&mx); v.push_back(mn); v.push_back(mx);
^~~~~~
rindex
gap.cpp:77:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v.size()-1;i++) ans = max(ans,v[i+1]-v[i]);
~^~~~~~~~~~~