Why is this code giving wrong answer for problem FLOW010

I wrote this code for the problem FLOW010 and when I run it in the IDE mode, it gives me the right output. But when I submit it, it says wrong answer.

I’ve just started coding and will appreciate your help

Here’s the link:
https://www.codechef.com/viewsolution/28492291

1 Like

Bro its “BattleShip” and not “Battleship”

:facepalm:
thanks :double facepalm: