Main.cc: In function 'int main()': Main.cc:13:4: error: expected '}' before 'else' }else{ ^ Main.cc: At global scope: Main.cc:23:3: error: expected unqualified-id before 'else' }else{ ^