Main.cc: In function 'int main()': Main.cc:6:2: error: expected ';' before 'if' if(n%3==0 && n%5==0){ ^ Main.cc:10:2: error: 'else' without a previous 'if' else{ ^