Hello!
I have written a nested for loop with an inner loop of 86400 iterations and the outer loop 365. It compiles and everything but only gives me 97 of the 365 results. This is the error message:
aqua(855) malloc: *** mmap(size=268435456) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
When I googled it people said it was because the computer didn't have enough memory. But I tried running it on a school computer and had exactly the same problem, with 97 results again. Does anyone know if there is any way of getting around this?
Thank you!