https://i.stack.imgur.com/i6URA.jpg
Results in a segmentation fault (core dumped) error in compiler. Please help!