Main.cc: In function 'int main()': Main.cc:7:4: error: expected ',' or ';' before 'if' if (y % x == 0) { ^ Main.cc:9:6: error: 'else' without a previous 'if' } else { ^