There is a triple bond and C and O each have one lone pair.
But, here is an update. When drawing Lewis structures we don't use dots and crosses. That is an antiquated approach. The reason is that in a compound, all of the electrons belong to the entire molecule, not to individual atoms. This is the influence that molecular orbital theory has had on Lewis structures: no crosses, only dots (and dashes for bonding pairs.)
Take a look: http://3.bp.blogspot.com/_Jpm5bX4HPaw/TOA2WZzXnjI/AAAAAAAAAes/gHD9_zcZNrY/s400/Lewis-structures-of-carbon-monoxide-and-hydrogen-cyanide.jpg
======= Follow up ========
It's not really a question of one atom or another "giving" electrons. When drawing a Lewis structure we add up all of the valence electrons and then distributing them within the Lewis structure according to a series of guidelines.
1. Compute total of valence electrons
2. Decide on which element is the central atom
3. Construct the skeleton structure of the molecule and connect each terminal atom to the central atom by a single bond (a pair of electrons) represented by a dashed line
4. Complete the octet of the terminal atoms
5. If there are not enough electrons to give an octet to the central atom, then consider using a double or triple bond.
6. If there are "left-over" electrons, place them on the central atom, even if it means having more than 8.
7. Use formal charges to pick the best from among several possible Lewis structures