0_0_17628680_26886.cpp: In function 'int main()': 0_0_17628680_26886.cpp:102:26: error: invalid type argument of unary '*' (have 'int') sum +=* val[i] * tes[i] * (n - tes[i]); ^