Compile Error
/in/foo.cc: In function 'double work()': /in/foo.cc:69:84: error: 'p' was not declared in this scope f[i][j][0]=min(f[i-1][j][0]+dis[c[i-1]][c[i]],f[i-1][j][1]+dis[d[i-1]][c[i]]*p[i-1]+dis[c[i-1]][c[i]]*(1.0-p[i-1])); ^ /in/foo.cc:77:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i=1;i<=m;i++) ^~~ /in/foo.cc:79:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' return ans; ^~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P2005 换教室
- 语言
- C++
- 递交时间
- 2018-11-07 13:30:42
- 评测时间
- 2018-11-07 13:30:42
- 评测机
- 分数
- 0
- 总耗时
- 1350ms
- 峰值内存
- 132.699 MiB