0_0_33671619_2589.cpp: In function 'int main()': 0_0_33671619_2589.cpp:24:49: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)' strcpy(e[j].name,e[j+1].name); ^