/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main(int, char**)':
foo.cc:85:50: error: invalid types 'i64 {aka long int}[int]' for array subscript
   85 |                 f[i][j]=max(f[i][j],f[i-k][j-1]+g[i-k+1][i]);
      |                                                  ^
foo.cc:82:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   82 |     for (int i=1;i<=n;i++)
      |     ^~~
foo.cc:87:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   87 |         printf("%ld\n", f[n][g]);
      |         ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1488 路灯的改建计划
语言
C++
递交时间
2022-10-02 19:36:04
评测时间
2022-10-02 19:36:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes