/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'long long int dive(int, int)':
/in/foo.cc:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=l;i<=r;i++)
  ^~~
/in/foo.cc:14:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    return x;
    ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:27:28: error: 'dp' was not declared in this scope
        f[i][j]=max(f[i][j],dp[j][k-1]*dive(j+1,i));
                            ^~
/in/foo.cc:25:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=k+1;i<=lend;i++)
    ^~~
/in/foo.cc:29:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
      cout<<f[lend][m]; 
      ^~~~

信息

递交者
类型
递交
题目
P1347 乘积最大
语言
C++
递交时间
2020-09-19 13:13:48
评测时间
2020-09-19 13:13:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes