I've furthered in the realization of my save function and got the idea of passing my arguments as "vector" (because they are) instead of "string" which gives this:
void saveFunction(ofstream& save, vector<string> site, vector<string> url, vector<string> username, vector<string> password)
{
save << site;
save << url;
save << username;
save << password;
}
which gives this error:
error: no match for 'operator<<' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'std::vector<std::__cxx11::basic_string<char> >')