Main.cc: In function 'int main()': Main.cc:29:7: error: 'r' was not declared in this scope x=x*r; ^ Main.cc:33:3: error: expected ';' before '}' token } else { ^