First of all, temp is uninitialized before it is dereferenced. Secondly, the for() loop does not build a list of 10 nodes,
even if there weren't memory stomps. Thirdly, the while() loop should never execute since the condition is an
assignment, not a comparison, and the result of the expression will be false to begin with.