https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91044
Bug ID: 91044 Summary: /home/hugo/Code_Block/C++_Tutorial/cadenas_tipo_c.cpp| 12|error: no matching function for call to ‘getline(std::string [50], int, char)’| Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: baronahugo31 at gmail dot com Target Milestone: --- The following program provides an error each time you call getline: #include <iostream> #include <string> #define NULO '\0' using namespace std; int main(){ string nombre[50], apellido1[50], apellido2[50], completo[150]; cout << "Nombre: "; getline(nombre, 50, '\n'); cout << "\nPrimer Apellido: "; getline(apellido1, 50, '\n'); cout << "\nSegundo Apellido: "; getline(apellido2, 50, '\n'); completo=NULO; cout << "\n\nSu nombre completo es: " << completo << endl; cin.get(); } The same happens when the following instruction is changed to char: char nombre[50], apellido1[50], apellido2[50], completo[150]; Every time an instruction with getline appears, you get an error Sincerely hugo barona