#include using namespace std; int dir[6][2]={{-2,-1},{-2,1},{0,2},{2,1},{2,-1},{0,-2}}; string get_dir(int d) { switch(d) { case 0:return "UL"; case 1: return "UR"; case 2: return "R"; case 3: return "LR"; case 4: return "LL"; case 5: return "L"; default: return ""; } } vector res; struct st { int i,j; vector path; }; bool isvalid(int i, int j ,int n) { if(i<0 || i>=n || j<0 || j>=n) return 0; return 1; } void printShortestPath(int n, int i_start, int j_start, int i_end, int j_end) { // Print the distance along with the sequence of moves. int i_dir; vector path; bool vis[205][205]={0}; vis[i_start][j_start]=1; queue Q; bool flag = 0; st P; while(!Q.empty() || flag==0) { if(flag==1) { P = Q.front(); // 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; }