I'm trying to use stoi function with MinGW 4.8.1 but it says that "stoi is not defined in this scope". I got C++11 support checked in both project and compiler settings. Here are the build commands:
mingw32-g++.exe -std=c++11 -Wall -fexceptions -std=c++11 -std=c++11 -g -std=c++11 -c