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