Main.cc: In function 'int main()': Main.cc:11:15: error: 'b' was not declared in this scope sum += a[i]*b[i]; ^