0_0_34254602_28132.cpp: In function 'int bfs()': 0_0_34254602_28132.cpp:40:8: error: 'cnt' was not declared in this scope if(cnt!=0)return -1; ^