#include<iostream> #include<vector> using namespace std; vector<pair<int,int>> path; vector<pair<int,int>> res; int x[4] = {1,0,-1,0}; int y[4] = {0,1,0,-1}; void backtrace(vector<vector<int>>& maze,int m,int n,int cur_x,int cur_y){ // base ca...