monte.c: Segmentation fault error fixed(array instead pointer)