Main.cc: In function 'int main()': Main.cc:5:2: error: expected initializer before 'cin' cin>>a>>b>>c; ^ Main.cc:6:9: error: 'c' was not declared in this scope if(a+b>c) ^