ALL Testcases are failing

Link to the code : https://ide.codingblocks.com/s/313432

My code is giving correct results but I am getting line4 segmentation fault on compiling . Please help

in the output you have to remove the space before β€œmoving”
rest of the code is correct

1 Like