rUNTIME ERROR sHOWING UP

https://ide.codingblocks.com/s/140596 pLEASE HELP

@kunaldude04 See the Constraints:
1<=N<=10^6 0<=Ai<=10^6
You have restricted the size of your array to 1000 due to which it is giving runtime error for large test cases. Increase it to 10^6 and then check.

Still showing error .

@kunaldude04 https://ide.codingblocks.com/s/141095
Refer this.

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.