Main.cc: In function 'int main()': Main.cc:6:2: error: 'num' was not declared in this scope num=n-y/x; ^ Main.cc:11:2: error: 'else' without a previous 'if' else ^