Answer
Carbon monoxide is a compound.
Work Step by Step
It is composed of more than one element that have been chemically bonded together. This defines a compound.
The carbon part of pencil lead is an element. It is found in one entry on the periodic table and is made up of one kind of atom.