#include<stdio.h> #define M 6 #define N 6 typedef struct { int x; int y; int der; }node; typedef struct { node maze[100]; int top; }stac; int mg[M+2][N+2]= { {1,1,1,1,1,1,1,1}, {1,0,0,1,0,0,0,1}, {1,0,0,1,0,0,0,1}, {1,0,0,0,0,1,0,1}, {1,1,1,1,1,0,0,1}, {1,0,0,0,0,0,0,1}, {1,0,1,0,0,1,0,1}, {1,...