class Inventory { public: enum Fruit { APPLE, BANANA, GRAPE, ORANGE }; enum Paint { RED, BLUE, GREEN, ORANGE }; }; int main() { }
Standard input is empty
prog.cpp:4: error: declaration of ‘ORANGE’ prog.cpp:3: error: conflicts with previous declaration ‘Inventory::Fruit Inventory::ORANGE’
Standard output is empty