gap.cpp:8:1: error: 'vi' does not name a type
vi answer,pom;
^~
gap.cpp: In function 'long long int findGap(long long int, long long int)':
gap.cpp:17:13: error: 'answer' was not declared in this scope
while (sz(answer)+sz(pom)<n)
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^
gap.cpp:17:13: note: suggested alternative: 'ans'
while (sz(answer)+sz(pom)<n)
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^
gap.cpp:17:24: error: 'pom' was not declared in this scope
while (sz(answer)+sz(pom)<n)
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^
gap.cpp:17:24: note: suggested alternative: 'pow'
while (sz(answer)+sz(pom)<n)
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^
gap.cpp:29:12: error: 'pom' was not declared in this scope
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^
gap.cpp:29:12: note: suggested alternative: 'pow'
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^
gap.cpp:29:19: error: 'answer' was not declared in this scope
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^~~~~~
gap.cpp:29:19: note: suggested alternative: 'ans'
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^~~~~~
ans
gap.cpp:30:20: error: 'answer' was not declared in this scope
for (int i=0;i<sz(answer)-1;i++)ans=max(ans,answer[i+1]-answer[i]);
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^
gap.cpp:30:20: note: suggested alternative: 'ans'
for (int i=0;i<sz(answer)-1;i++)ans=max(ans,answer[i+1]-answer[i]);
^
gap.cpp:4:20: note: in definition of macro 'sz'
#define sz(x) (int)x.size()
^