prog.cpp:1:2: error: invalid preprocessing directive #i
#i#include <iostream> // std::cout
^
prog.cpp: In function 'int main()':
prog.cpp:13:15: error: 'stoi' is not a member of 'std'
int i_dec = std::stoi (str_dec,&sz);
^
prog.cpp:14:15: error: 'stoi' is not a member of 'std'
int i_hex = std::stoi (str_hex,nullptr,16);
^
prog.cpp:14:34: error: 'nullptr' was not declared in this scope
int i_hex = std::stoi (str_hex,nullptr,16);
^
prog.cpp:15:15: error: 'stoi' is not a member of 'std'
int i_bin = std::stoi (str_bin,nullptr,2);
^
prog.cpp:16:16: error: 'stoi' is not a member of 'std'
int i_auto = std::stoi (str_auto,nullptr,0);
^
prog.cpp:18:3: error: 'cout' is not a member of 'std'
std::cout << str_dec << ": " << i_dec << " and [" << str_dec.substr(sz) << "]\n";
^
prog.cpp:19:3: error: 'cout' is not a member of 'std'
std::cout << str_hex << ": " << i_hex << '\n';
^
prog.cpp:20:3: error: 'cout' is not a member of 'std'
std::cout << str_bin << ": " << i_bin << '\n';
^
prog.cpp:21:3: error: 'cout' is not a member of 'std'
std::cout << str_auto << ": " << i_auto << '\n';
^