求大佬完善此代码
#include<bits/stdc++.h>
using namespace std;
int m,n,t,ans,i,j;
int dx[4]={1,0,-1,0},x1,x2;
int dy[4]={0,0,-1,1},y1,y2;
char Map[101][101];
bool vis[101][101];
void dfs(int x,int y,int cnt,int s)
{
if(x<1||x>m||y<1||y>n)
{
return;
}
if()
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.precision(10);
cout<<fixed;
cin>>m>>n>>t;
for(i=1;i<=m;i++)
{
for(j=1;j<=n;j++)
{
cin>>Map[i][j];
if(Map[i][j]=='@')
{
x1=i;
y1=j;
}
else if(Map[i][j]=='+')
{
x2=i;
y2=j;
}
}
}
dfs(x,y,t,0);
cout<<ans<<"\n";
return 0;
}