gap.cpp:6: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:15:13: error: 'answer' was not declared in this scope
while (sz(answer)+sz(pom)<n)
^~~~~~
gap.cpp:15:13: note: suggested alternative: 'ans'
while (sz(answer)+sz(pom)<n)
^~~~~~
ans
gap.cpp:15:10: error: 'sz' was not declared in this scope
while (sz(answer)+sz(pom)<n)
^~
gap.cpp:15:24: error: 'pom' was not declared in this scope
while (sz(answer)+sz(pom)<n)
^~~
gap.cpp:15:24: note: suggested alternative: 'pow'
while (sz(answer)+sz(pom)<n)
^~~
pow
gap.cpp:27:12: error: 'pom' was not declared in this scope
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^~~
gap.cpp:27:12: note: suggested alternative: 'pow'
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^~~
pow
gap.cpp:27:9: error: 'sz' was not declared in this scope
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^~
gap.cpp:27:19: error: 'answer' was not declared in this scope
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^~~~~~
gap.cpp:27:19: note: suggested alternative: 'ans'
while (sz(pom)>0)answer.pb(pom.back()),pom.pop_back();
^~~~~~
ans
gap.cpp:28: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:28:20: note: suggested alternative: 'ans'
for (int i=0;i<sz(answer)-1;i++)ans=max(ans,answer[i+1]-answer[i]);
^~~~~~
ans
gap.cpp:28:17: error: 'sz' was not declared in this scope
for (int i=0;i<sz(answer)-1;i++)ans=max(ans,answer[i+1]-answer[i]);
^~