Main.cc:1:1: error: expected unqualified-id before ‘if’ if (solid == 1) { ^~ Main.cc:5:3: error: expected unqualified-id before ‘else’ } else { ^~~~