prog.cpp: In function ‘std::string fractionToDecimal(int, int)’:
prog.cpp:9:37: error: ‘to_string’ was not declared in this scope
string res_s = to_string(res);
^
prog.cpp:10:9: error: ‘unordered_map’ was not declared in this scope
unordered_map<char,int> hashtable;
^
prog.cpp:10:23: error: expected primary-expression before ‘char’
unordered_map<char,int> hashtable;
^
prog.cpp:10:23: error: expected ‘;’ before ‘char’
prog.cpp:15:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(cur == res_s.size()) return res_s;
^
prog.cpp:17:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(cur < res_s.size()){
^
prog.cpp:18:16: error: ‘hashtable’ was not declared in this scope
if(hashtable.find(res_s[cur]) == hashtable.end()){
^