Run id: 151396

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