Main.cc: In function 'int main()': Main.cc:19:16: error: 'else' without a previous 'if' else{ ^ Main.cc:24:1: error: expected '}' at end of input } ^