int x = 0; int y = 0; int Dir[8][2] = {{-1,1},{0,1},{1,1},{-1,0},{1,0},{-1,-1},{0,-1},{1,-1}}; list vec_p; list vec_p_b; ofstream outputfile; outputfile.open (/home/lcy/CLionProjects/narrow_passage/map/matrixoutput.txt); vector vec_result(15); vector