Electrolysis does not mean adding water. The question specifically stated that this is liquid NaCl, ie the melted solid, not a solution.
I will use this oppertunity to illustrate how useful forum searches can be.
Do a forum search for "electrolysing molten sodium chloride".