prog.cpp: In member function ‘int Solution::mirrorDistance(int)’:
prog.cpp:5:9: error: ‘string’ was not declared in this scope
string str = to_string(n);
^~~~~~
prog.cpp:5:9: note: suggested alternative: ‘struct’
string str = to_string(n);
^~~~~~
struct
prog.cpp:8:17: error: ‘str’ was not declared in this scope
reverse(str.begin(), str.end());
^~~
prog.cpp:8:17: note: suggested alternative: ‘std’
reverse(str.begin(), str.end());
^~~
std
prog.cpp:8:9: error: ‘reverse’ was not declared in this scope
reverse(str.begin(), str.end());
^~~~~~~
prog.cpp:11:25: error: ‘stoll’ was not declared in this scope
long long rev = stoll(str);
^~~~~
prog.cpp:14:16: error: ‘abs’ was not declared in this scope
return abs(n - rev);
^~~