Problem while compiling with MOD

I don’t know what is wrong with this MOD.

Hello @sanjit_15 this is because you have declared your MOD as 1e9, instead you shoudl declare it as 1000000000.
if this resolves your doubt you can mark this as resolved.
Happy Learning!!

Hello @sanjit_15 this is because you have declared your MOD as 1e9, instead you shoudl declare it as 1000000000.
if this resolves your doubt you can mark this as resolved.
Happy Learning!!

Thank you…I just have another issue, while giving the input
1
3
24 354 6
56 57 465
98765432
Its still asking to enter input in terminal…and not giving the output…
Question link : https://www.spoj.com/problems/SEQ/
My code link : https://ide.codingblocks.com/s/392446

Hello
@sanjit_15 i ahve tried your code there is some mistake in your code it is giving TLE .
if your query is resolved you can mark this as resolved.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.