Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:7: error: 'n' was not declared in this scope
  cin>>n;
       ^
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:20:8: error: 'n' was not declared in this scope
  if(x==n&&y==n)
        ^
/in/foo.cc:27:6: error: 'dx' was not declared in this scope
   x+=dx[i];
      ^~
/in/foo.cc:28:6: error: 'dy' was not declared in this scope
   y+=dy[i];
      ^~
/in/foo.cc:29:15: error: 'n' was not declared in this scope
   if(x>=1&&x<=n&&y>=1&&y<=n&&maze[x][y]==0)
               ^

信息

递交者
类型
递交
题目
P1564 迷宫 路径总数
语言
C++
递交时间
2021-07-09 10:06:47
评测时间
2021-07-09 10:06:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes