#include using namespace std; int N, M, tr, tv; char **laud; bool leitiHype=false; int sammusuunad[4][2]={{-1, 0}, {0, -1}, {1, 0}, {0, 1}}; void tryki(){ for(int rida=0; rida=0 && r=0 && v> N >> M; laud=new char*[N]; for(int rida=0; rida> laud[rida][veerg]; if(laud[rida][veerg]=='#'){tr=rida; tv=veerg;} } } hypped(tr, tv); while(leitiHype){ leitiHype=false; for(int rida=0; rida