Please check code (line 4 segmentattion fault)

the code works on independent ide

where is the code??

paste you code at

click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793