0_0_36730608_20701.cpp: In function 'int main()': 0_0_36730608_20701.cpp:30:77: error: expected ')' before ';' token ans = (ans * f(p, q - 1) % mod * ( ( (p - 1) * q % mod + p ) % mod) % mod; ^