compiler bugs fixed but fail to run due to Segmentation fault (core dumped)