Main.cc: In function ‘int main()’: Main.cc:8:5: error: expected ‘,’ or ‘;’ before ‘cout’ cout << c << endl; ^~~~ Main.cc:7:12: warning: unused variable ‘c’ [-Wunused-variable] double c=a/b*1.0 ^