Module: C++. The robot checks the situation