0_0_16909355_850.cpp: In function 'int main()': 0_0_16909355_850.cpp:25:27: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'void*' for argument '1' to 'void* memset(void*, int, size_t)' memset(buf,0,sizeof(buf)); ^