0_0_23163376_14260.cpp: In function 'int main()': 0_0_23163376_14260.cpp:31:13: error: invalid type argument of unary '*' (have 'int') sum+=*a[i]*a[i]*h[i]; ^