0_0_13695789_16270.cpp: In function 'int bfs()': 0_0_13695789_16270.cpp:40:13: error: 'else' without a previous 'if' else if(p2.x>=0&&p2.x<m&&p2.y>=0&&p2.y<n) ^