Help regarding robot show (easy puzzle)

hey guys

I am solving this robot show puzzle and I have solved first 2 test, I guess by luck xD. I am trying to do it in c++. I have read the forum on it but I got no hints from there. If anyone can provide me with some hints to solve this problem will be helpful.

A post was merged into an existing topic: [Community Puzzle] Robot show