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