gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:12:5: error: 'vector' was not declared in this scope
vector<ll> v;
^
gap.cpp:1:12: error: expected primary-expression before 'long'
#define ll long long
^
gap.cpp:12:12: note: in expansion of macro 'll'
vector<ll> v;
^
gap.cpp:17:18: error: 'v' was not declared in this scope
if(l!=-1)v.push_back(l);
^
gap.cpp:18:18: error: 'v' was not declared in this scope
if(r!=-1)v.push_back(r);
^
gap.cpp:19:43: error: 'max' was not declared in this scope
if(r!=-1)res=max(res,max(r1-r,l-l1));
^
gap.cpp:19:44: error: 'max' was not declared in this scope
if(r!=-1)res=max(res,max(r1-r,l-l1));
^
gap.cpp:19:44: error: redeclaration of '<typeprefixerror>max'
gap.cpp:19:43: note: previous declaration '<typeprefixerror>max'
if(r!=-1)res=max(res,max(r1-r,l-l1));
^
gap.cpp:20:35: error: 'max' was not declared in this scope
if(l==-1)res=max(res,r1-l1);
^