Module: C++. The robot checks the situation


3 /7. corridors in the tunnel

The robot is located at a distance of two cells from the entrance to the tunnel. The tunnel contains corridors of unknown length and 1 tile wide. These tunnels are filled with valuable specimens that the robot must bring to the base. In addition, the robot must mark the cells in front of the entrance to the corridor, thereby making it clear that this corridor has been explored.
Write a program that will move Silver to the base.

Type your program below



To check the solution of the problem, you need to register or log in!
Previous Submissions