0_0_32288416_4725.cpp: In function 'int main()': 0_0_32288416_4725.cpp:40:13: error: expected ';' before 'ans' ans=(a+(k-1)*d)%mod; ^