/in/lab7.cpp: In member function 'virtual Turn MyGame::turn()':
/in/lab7.cpp:162:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (me.x == opposite.x && me.y == opposite.y || (me.x == preOpposite.x && me.y == preOpposite.y) && (opposite.x == preMe.x && opposite.y == preOpposite.y)) {
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/in/lab7.cpp: In member function 'virtual Map MyGame::getMap() const':
/in/lab7.cpp:242:7: warning: unused variable 'id' [-Wunused-variable]
int id = 0;
^~
/in/lab7.cpp: In member function 'int MyGame::transDirection(Direction)':
/in/lab7.cpp:51:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/lab7.cpp: In member function 'virtual Move MyBrain::judge()':
/in/lab7.cpp:338:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^