#include <conio.h>
you are not using this. so do not include them
string name;
needs to be std::string
the header's function's formal argument asks for a std::string you are giving it a string, not an std::string
Unfortunately, that didn't solve the problem.
try
void encrypt(std::string phase)