/ Vijos /

记录详情

Compile Error

foo.cc:29:67: error: stray '\2' in program
   29 | if (i>=b) f[i][j]=max(f[i][j],s[i][j]-s[i-b][j]-s[i][j-a]+s[i-b][ja]);
      |                                                                   ^
foo.cc:30:67: error: stray '\2' in program
   30 | if (j>=b) f[i][j]=max(f[i][j],s[i][j]-s[i-a][j]-s[i][j-b]+s[i-a][jb]);
      |                                                                   ^
foo.cc:35:71: error: stray '\2' in program
   35 | if (i>=b) ans=max(ans,s[i][j]-s[i-b][j]-s[i][j-a]+s[i-b][j-a] +max(f[ib][m],f[n][j-a]));
      |                                                                       ^
foo.cc:36:71: error: stray '\2' in program
   36 | if (j>=b) ans=max(ans,s[i][j]-s[i-a][j]-s[i][j-b]+s[i-a][j-b] +max(f[ia][m],f[n][j-b]));
      |                                                                       ^
foo.cc: In function 'int main()':
foo.cc:29:67: error: expected ']' before 'a'
   29 | if (i>=b) f[i][j]=max(f[i][j],s[i][j]-s[i-b][j]-s[i][j-a]+s[i-b][ja]);
      |                                                                   ^~
      |                                                                   ]
foo.cc:29:67: error: expected ')' before 'a'
   29 | if (i>=b) f[i][j]=max(f[i][j],s[i][j]-s[i-b][j]-s[i][j-a]+s[i-b][ja]);
      |                      ~                                            ^~
      |                                                                   )
foo.cc:30:67: error: expected ']' before 'b'
   30 | if (j>=b) f[i][j]=max(f[i][j],s[i][j]-s[i-a][j]-s[i][j-b]+s[i-a][jb]);
      |                                                                   ^~
      |                                                                   ]
foo.cc:30:67: error: expected ')' before 'b'
   30 | if (j>=b) f[i][j]=max(f[i][j],s[i][j]-s[i-a][j]-s[i][j-b]+s[i-a][jb]);
      |                      ~                                            ^~
      |                                                                   )
foo.cc:35:71: error: expected ']' before 'b'
   35 | if (i>=b) ans=max(ans,s[i][j]-s[i-b][j]-s[i][j-a]+s[i-b][j-a] +max(f[ib][m],f[n][j-a]));
      |                                                                       ^~
      |                                                                       ]
foo.cc:35:71: error: expected ')' before 'b'
   35 | if (i>=b) ans=max(ans,s[i][j]-s[i-b][j]-s[i][j-a]+s[i-b][j-a] +max(f[ib][m],f[n][j-a]));
      |                                                                   ~   ^~
      |                                                                       )
foo.cc:36:71: error: expected ']' before 'a'
   36 | if (j>=b) ans=max(ans,s[i][j]-s[i-a][j]-s[i][j-b]+s[i-a][j-b] +max(f[ia][m],f[n][j-b]));
      |                                                                       ^~
      |                                                                       ]
foo.cc:36:71: error: expected ')' before 'a'
   36 | if (j>=b) ans=max(ans,s[i][j]-s[i-a][j]-s[i][j-b]+s[i-a][j-b] +max(f[ia][m],f[n][j-b]));
      |                                                                   ~   ^~
      |                                                                       )
foo.cc:9:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 | scanf("%lld%lld%lld%lld",&n,&m,&a,&b);
      | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:12:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 | for (int j=1;j<=m;j++) scanf("%lld",&g[i][j]);
      |                        ~~~~~^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1764 Dual Matrices
语言
C++
递交时间
2022-03-30 11:17:03
评测时间
2022-03-30 11:17:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes