#include using namespace std; struct pos { int visited; long long mvs; vector mv; }; void findPath(int n,int x,int y,int endx,int endy,int **board,pos **brd) { //cout<=0 && y-1>=0) { findPath(n,x-2,y-1,endx,endy,board,brd); if(brd[x-2][y-1].mvs!=-1) { tempx=x-2; tempy=y-1; curr=brd[x-2][y-1].mvs+1; cmv="UL"; } } if(x-2>=0 && y+1<=n-1) { findPath(n,x-2,y+1,endx,endy,board,brd); if(brd[x-2][y+1].mvs!=-1) { temp=brd[x-2][y+1].mvs+1; if(curr==-1 || (curr!=-1 && temp=0) { findPath(n,x+2,y-1,endx,endy,board,brd); if(brd[x+2][y-1].mvs!=-1) { temp=brd[x+2][y-1].mvs+1; if(curr==-1 || (curr!=-1 && temp=0) { findPath(n,x,y-2,endx,endy,board,brd); if(brd[x][y-2].mvs!=-1) { temp=brd[x][y-2].mvs+1; if(curr==-1 || (curr!=-1 && temp=0;j--) cout<> n; int i_start; int j_start; int i_end; int j_end; cin >> i_start >> j_start >> i_end >> j_end; printShortestPath(n, i_start, j_start, i_end, j_end); return 0; }