Main.cc: In function 'int main()': Main.cc:26:4: error: expected '}' before 'else' else if(c>(tot/2)){ ^ Main.cc:29:1: error: expected '}' at end of input } ^