I get the error message \"stoi is not a member of std\" when I try to use std::stoi and try to compile it. I\'m using g++ 4.7.2 from the command line so it can\'t be IDE err
std::stoi() is new in C++11 so you have to make sure you compile it with:
std::stoi()
g++ -std=c++11 example.cpp
or
g++ -std=c++0x example.cpp