Counting the electrons in the student's structure: the drawing uses 2+2+6+6=16 electrons, which is the right total (4 from carbon +6+6 from the two oxygens). Each oxygen has 8 electrons around it (three lone pairs and one shared pair). But the carbon atom has only two shared pairs around it, that is only 4 electrons, not the 8 it needs for a noble-gas octet. Carbon has also shared only two of its four valence electrons, so it would be forming only two bonds although it is tetravalent. The structure is therefore wrong.
The correct bonding: carbon must share all four of its valence electrons. It shares two pairs of electrons with each oxygen atom, forming two carbon–oxygen double bonds, O=C=O. Each oxygen then keeps only two lone pairs.
Count again: 4 shared pairs (8 electrons) + 4 lone pairs (8 electrons) = 16 electrons. Carbon has 8 electrons around it (four shared pairs) and each oxygen has 8 (two shared pairs and two lone pairs), so every atom has an octet.

Correct electron-dot structures, including carbon dioxide with its two double bonds.