Added namespace directive and header include for CError