diff --git a/src/read_input.cpp b/src/read_input.cpp index f042205..c821689 100644 --- a/src/read_input.cpp +++ b/src/read_input.cpp @@ -74,8 +74,8 @@ void graph::read(std::string filename) { std::vector stovi (const std::string &s) { // Create the number classifier - std::regex breaker("[0-9]+"); - std::sregex_token_iterator first{s.begin(), s.end(), breaker, 0}, last; + std::regex pattern("[0-9]+"); + std::sregex_token_iterator first{s.begin(), s.end(), pattern, 0}, last; // Match the numbers std::vector res; for (auto i = first; i != last; ++i) res.push_back(atoi(i->str().c_str()));