https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91044
--- Comment #2 from hugo <baronahugo31 at gmail dot com> --- Please see the following page that defines a getline: https://en.cppreference.com/w/cpp/string/basic_string/getline This other page defines another type of getline: https://en.cppreference.com/w/cpp/string/basic_string/getline And if you compile the sample source code, you get an error in the line where the following instruction is: for (std::string line; std::getline(input, line); ) { sum += std::stoi(line); Can you help me?