Main.cc: In function 'int main()':
Main.cc:7:11: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:11:11: error: 'b' was not declared in this scope
cin>>b[i];
^
Main.cc:15:15: error: 'a' was not declared in this scope
sum=sum+a[i]*b[i];
^
Main.cc:15:20: error: 'b' was not declared in this scope
sum=sum+a[i]*b[i];
^
Main.cc:17:14: error: expected '}' at end of input
cout<