https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91044
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
You get an error because that's not valid C++.
I don't know what you think those calls to getline are supposed to do, but
there is no matching function in the C++ standard library.
https://en.cppreference.com/w/cpp/string/basic_string/getline