Compile Error
foo.cc: In function ‘int main()’:
foo.cc:23:70: error: expected ‘)’ before ‘;’ token
23 | f[i][j]=min(f[i][j],f[i][k]+f[k+1][j];
| ~ ^
| )
foo.cc:26:73: error: expected ‘}’ before ‘)’ token
26 | f[i][j]=min({f[i][j],f[i+1][j],f[i][j-1]);
| ~ ^
foo.cc:26:73: note: probably missing a comma or an operator before
foo.cc:27:18: error: expected ‘)’ before ‘cout’
27 | }
| ^
| )
28 |
29 | cout<<f[0][n-1];
| ~~~~
foo.cc:26:44: note: to match this ‘(’
26 | f[i][j]=min({f[i][j],f[i+1][j],f[i][j-1]);
| ^
foo.cc:32:2: error: expected ‘}’ at end of input
32 | }
| ^
foo.cc:9:1: note: to match this ‘{’
9 | {
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P2924 古籍展架优化计划 pta202505T4
- 语言
- C++
- 递交时间
- 2026-10-15 17:41:04
- 评测时间
- 2026-10-15 17:41:04
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes