Segmentation fault

https://pastebin.com/XX4SLPPX

mi dà segmentation fault come errore. Dove sbaglio?