‘stoi’ was not declared in this scope [duplicate]
问题 This question already has answers here : cygwin g++ std::stoi "error: ‘stoi’ is not a member of ‘std (4 answers) Closed 4 years ago . So this error have been addressed several times, but no answers helped me. I'm using Notepad++ and Cygwin on windows 10. My code is as follows and it's from Derek Banas's 1 hour C++ tutorial: #include <iostream> #include <vector> #include <string> #include <fstream> #include <cstdlib> #include <sstream> //#include <stdlib.h> using namespace std; int main(){