fixed segmentation fault bug a14.c