Problem in code

my code is getting segmentation fault…can’t identify why