An organic compound is any member of a large class of gaseous, liquid, or solid chemical compounds whose molecules contain carbon.
Carbonates, simple oxides of carbon, and cyanide molecules do have carbon, but they are not regarded as organic.
Inorganic compounds are compounds which do not contain carbon and are not derived from living matter. They include substances made from single elements, salts, metals, and any other compound that do not contain carbon bonded to hydrogen.