0_0_30874434_7870.cpp: In function 'int main()': 0_0_30874434_7870.cpp:68:94: error: expected ';' before ')' token dp[i + 1] = temp1 + (t * a[i]) % MOD + ((t - 1) * (dp[i] - dp[x[i]])) % MOD + MOD) % MOD; ^