Main.cc: In function 'int main()': Main.cc:5:9: error: redeclaration of 'int s' int s=a*b; ^ Main.cc:4:20: note: 'int s' previously declared here int a=8650,b=4,s=0; ^