Main.cc: In function ‘int main()’: Main.cc:14:3: error: ‘num’ was not declared in this scope num=0; ^~~ Main.cc:14:3: note: suggested alternative: ‘enum’ num=0; ^~~ enum