#include<vector> #include<iostream> #include<string> using namespace std; void makeroute(vector<string>& str, int n, int m, int i, int j) { if (i < 0 || i >= n || j < 0 || j >= m) return; if (str[i][j]!='1'&&str[i][j] != '#') { str[i][j] = '1'; ...