0_0_30449521_4968.cpp: In function 'int main()': 0_0_30449521_4968.cpp:141:11: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'char*' for argument '1' to 'char* gets(char*)' gets(a); ^