Segmentation fault

shape