when compiling with gcc i get the error message "Segmentation fault (core dumped)" but i can\'t find the point where i access out of bound memory. I even tried to