[Error] ‘stoi’ was not declared in this scope 解决方法如下: 在DevC++里 工具–>编译选项–>设置–>代码生成->>>语言标准–>选择GUI C++11就可以了;