prog.cpp:20:23: error: ‘vector’ has not been declared
int maxDigitRange(vector<int> b)
^~~~~~
prog.cpp:20:29: error: expected ‘,’ or ‘...’ before ‘<’ token
int maxDigitRange(vector<int> b)
^
prog.cpp: In member function ‘int Solution::digit(int)’:
prog.cpp:12:22: error: ‘max’ was not declared in this scope
mx = max(mx, d);
^~~
prog.cpp:12:22: note: suggested alternative: ‘mx’
mx = max(mx, d);
^~~
mx
prog.cpp:13:22: error: ‘min’ was not declared in this scope
mn = min(mn, d);
^~~
prog.cpp:13:22: note: suggested alternative: ‘mn’
mn = min(mn, d);
^~~
mn
prog.cpp: In member function ‘int Solution::maxDigitRange(int)’:
prog.cpp:24:20: error: ‘b’ was not declared in this scope
for(int x: b)
^
prog.cpp:26:20: error: ‘max’ was not declared in this scope
best = max(best , digit(x));
^~~
prog.cpp:30:20: error: ‘b’ was not declared in this scope
for(int x: b)
^