Main.cc:3:5: error: 'cin' does not name a type cin>>a>>b>>c; ^ Main.cc:4:4: error: expected unqualified-id before 'switch' switch(b){ ^