gap.cpp: In function 'll findGap(int, int)':
gap.cpp:6:3: error: 'vector' was not declared in this scope
vector<ll> v1,v2;
^~~~~~
gap.cpp:6:12: error: expected primary-expression before '>' token
vector<ll> v1,v2;
^
gap.cpp:6:14: error: 'v1' was not declared in this scope
vector<ll> v1,v2;
^~
gap.cpp:6:17: error: 'v2' was not declared in this scope
vector<ll> v1,v2;
^~
gap.cpp:14:3: error: 'reverse' was not declared in this scope
reverse(v2.begin(),v2.end());
^~~~~~~
gap.cpp:15:15: error: unable to deduce 'auto&&' from 'v2'
for(int i : v2) v1.push_back(i);
^~
gap.cpp:16:40: error: 'max' was not declared in this scope
for(int i=0;i<v1.size()-1;i++) ans = max(ans,v1[i+1]-v1[i]);
^~~
gap.cpp:16:40: note: suggested alternative: 'mx'
for(int i=0;i<v1.size()-1;i++) ans = max(ans,v1[i+1]-v1[i]);
^~~
mx
gap.cpp:26:10: error: 'max' was not declared in this scope
ans = max(ans,mn-last);
^~~
gap.cpp:26:10: note: suggested alternative: 'mx'
ans = max(ans,mn-last);
^~~
mx