Main.cc: In function 'int main()': Main.cc:7:10: warning: right operand of comma operator has no effect [-Wunused-value] cin>>c,f; ^ Main.cc:10:5: error: expected ';' before 'cout' cout<<(c+f)/2; ^