prog.cpp:5:41: error: ‘vector’ has not been declared
long long minNumberOfSeconds(int h, vector<int>& v) {
^~~~~~
prog.cpp:5:47: error: expected ‘,’ or ‘...’ before ‘<’ token
long long minNumberOfSeconds(int h, vector<int>& v) {
^
prog.cpp: In member function ‘long long int Solution::minNumberOfSeconds(int, int)’:
prog.cpp:6:20: error: ‘v’ was not declared in this scope
ll i,n=(ll)v.size(),l,r,mid,md=1e8,mx,x,val,tmes=80;
^
prog.cpp:7:9: error: ‘map’ was not declared in this scope
map<ll,ll> mp;
^~~
prog.cpp:7:15: error: expected primary-expression before ‘,’ token
map<ll,ll> mp;
^
prog.cpp:7:18: error: expected primary-expression before ‘>’ token
map<ll,ll> mp;
^
prog.cpp:7:20: error: ‘mp’ was not declared in this scope
map<ll,ll> mp;
^~
prog.cpp:9:9: error: ‘mx’ was not declared in this scope
mx=(ll)md*md;
^~
prog.cpp:9:16: error: ‘md’ was not declared in this scope
mx=(ll)md*md;
^~
prog.cpp:10:9: error: ‘l’ was not declared in this scope
l=0;r=mx;
^
prog.cpp:10:9: note: suggested alternative: ‘ll’
l=0;r=mx;
^
ll
prog.cpp:10:13: error: ‘r’ was not declared in this scope
l=0;r=mx;
^
prog.cpp:15:13: error: ‘mid’ was not declared in this scope
mid=(l+r)/2;
^~~
prog.cpp:16:13: error: ‘val’ was not declared in this scope
val=0;
^~~
prog.cpp:19:17: error: ‘x’ was not declared in this scope
x=mid/v[i];
^
prog.cpp:29:9: error: ‘mid’ was not declared in this scope
mid=(l+r)/2;
^~~