If I run my code when the const N is higher than a specific value (like 30,000 or more), I get "Process terminated with status -1073741510" and the values in my result