Main.cc: In function 'int main()': Main.cc:6:5: error: expected ';' before 'if' if(x>30){ ^ Main.cc:9:5: error: 'else' without a previous 'if' else{ ^ Main.cc:12:1: error: expected '}' at end of input } ^