Main.cc: In function ‘int main()’: Main.cc:8:9: error: redeclaration of ‘double c’ double c=a/b; ^ Main.cc:6:13: note: ‘double c’ previously declared here double a,b,c; ^