No output for test case 2

https://ide.codingblocks.com/s/208081.tell me where i m wrong

@parasjain011999 initialize your bool upsucess ,downsucess,rightsucess,leftsucess all with initial value false.