Run id: 130635
Main.cc: In function 'int main()':
Main.cc:5:16: error: conflicting declaration 'int n [1001]'
int n,s,n[1001]={},b[1001]={},s=0;
^
Main.cc:5:6: note: previous declaration as 'int n'
int n,s,n[1001]={},b[1001]={},s=0;
^
Main.cc:5:32: error: redeclaration of 'int s'
int n,s,n[1001]={},b[1001]={},s=0;
^
Main.cc:5:8: note: 'int s' previously declared here
int n,s,n[1001]={},b[1001]={},s=0;
^
Main.cc:8:11: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:10:11: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:12:9: error: 'a' was not declared in this scope
s+=a[i]*b[i];
^