Main.cc: In function 'int main()': Main.cc:6:5: error: expected primary-expression before 'int' if(int a;n-x*y=a){ ^ Main.cc:6:5: error: expected ')' before 'int' Main.cc:6:17: error: 'a' was not declared in this scope if(int a;n-x*y=a){ ^