The outlet and plug type used in Hungary are C and F and in Morocco are C and E and they are compatible with each other.
In Morocco, outlets of type C and E are in use.
In Hungary, outlets of type C and F are in use.