Show Runtime Error

I am trying to solve the DIVSUM2 problem but it runs in my local machine but online ide shows running error.

CodeLink-> https://ide.codingblocks.com/s/221910

Its showing an runtime error because you are declaring an array of size bigger than available memory on line 34. Avoid declaring arrays with size bigger than 10^7.