0_0_30422041_1396.cpp: In function 'int main()': 0_0_30422041_1396.cpp:24:41: error: expected ';' before ')' token ans=(a%mod)+((k-1)%mod*(b-a)%mod)%mod)%mod; ^