Main.cc: In function 'int main()':
Main.cc:5:17: error: redeclaration of 'int d'
int a1,a2,d,d;
^
Main.cc:5:15: note: 'int d' previously declared here
int a1,a2,d,d;
^
Main.cc:6:18: error: 'n' was not declared in this scope
cin>>a1>>a2>>n;
^