Main.cc: In function 'int main()':
Main.cc:8:2: error: expected initializer before 'for'
for(int i=1;i<=n;i++){
^
Main.cc:8:14: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++){
^
Main.cc:13:14: error: 'b' was not declared in this scope
s += a[i]*b[i];
^