Not sure how to solve - 'stoi' was not declared in this scope Permanently deleted user Created January 18, 2016 22:23 I believe it has something to do with C++11 but I'm not sure how to change the settings in CLion for it to compile.
I added this to CMake options...
-std=c++11
But still same issue
I assume you incleded <string> header and you're using std namespace?
http://en.cppreference.com/w/cpp/string/basic_string/stol
Yeah, I'm just learning c++ and was using the first script here...
http://www.newthinktank.com/2014/11/c-programming-tutorial/
I changed stoi to the atoi equivalent but just wondering why I can't stoi / stod to work