Oncogene is right. The hydrogen fuel cell generates electricity by allowing hydrogen to recombine with oxygen in a controlled way, forming water as a byproduct. You will never get more energy out than you put in, if you use electrolysis as a means of sourcing hydrogen.
As the rocket scientists say, TANSTAAFL, or There ain't no such thing as a free lunch.