gap.cpp:2:1: error: 'vector' does not name a type
vector<long long> findnum(long long s,long long e){
^~~~~~
gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:28:5: error: 'vector' was not declared in this scope
vector<long long> v;
^~~~~~
gap.cpp:28:12: error: expected primary-expression before 'long'
vector<long long> v;
^~~~
gap.cpp:30:5: error: 'v' was not declared in this scope
v=findnum(s,e);
^
gap.cpp:30:7: error: 'findnum' was not declared in this scope
v=findnum(s,e);
^~~~~~~
gap.cpp:30:7: note: suggested alternative: 'findGap'
v=findnum(s,e);
^~~~~~~
findGap
gap.cpp:31:19: error: 'n' was not declared in this scope
for(int i=1;i<n;i++){
^