Run error problem

code - https://ide.codingblocks.com/s/140939
when i am running the code it showing accurate result but when ia m submitting it , it is showing run error?what is the solution?

Hello @kushal1998,

Please, follow the constraints properly.
1 <= N <= 100000
I have modified your code;

Hope, this would help.
Give a like, if you are satisfied.

1 Like