error: ‘stol’ was not declared in this scope

tech2025-10-03  2

stol函数是C++11的标准函数,若使用就编译器会出现此错误,可选择 g++ -std=c++11 my_cpp_code.cpp 来避免错误。

最新回复(0)