Compile Error

/in/foo.cc:4:59: error: expected initializer before '\U0000ff1b'
    4 | int n,m,r,c,a[N][N],sum[N][N],d[N],dp[N][N],ans=INF,sel[N];
      |                                                           ^~
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:41:25: error: 'sel' was not declared in this scope
   41 |     for(int i=(dep==1?1:sel[dep-1]+1);i<=n-(r-dep);++i)//简单剪枝
      |                         ^~~
/in/foo.cc:47:40: error: 'zz' was not declared in this scope
   47 |             for(int j=1;j<=m;++j)d[j]+=zz[p][i][j];
      |                                        ^~
/in/foo.cc:51:28: error: 'ymq' was not declared in this scope
   51 |                 sum[x][y]+=ymq[x][y][i];
      |                            ^~~
/in/foo.cc:56:40: error: 'zz' was not declared in this scope
   56 |             for(int j=1;j<=m;++j)d[j]-=zz[p][i][j];
      |                                        ^~
/in/foo.cc:60:28: error: 'ymq' was not declared in this scope
   60 |                 sum[x][y]-=ymq[x][y][i];
      |                            ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:72:17: error: 'zz' was not declared in this scope
   72 |                 zz[i][j][k]=zz[j][i][k]=abs(a[i][k]-a[j][k]);
      |                 ^~
/in/foo.cc:76:17: error: 'ymq' was not declared in this scope
   76 |                 ymq[i][j][k]=ymq[j][i][k]=abs(a[k][i]-a[k][j]);
      |                 ^~~

信息

递交者
类型
递交
题目
P1520 子矩阵(submatrix)
语言
C++
递交时间
2026-10-31 19:51:53
评测时间
2026-10-31 19:51:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes