Main.cc: In function ‘int main()’: Main.cc:9:21: error: expected ‘;’ before ‘}’ token s=s+(b*a[i]) ^ ; } ~