QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#484778 | #1819. Cleaning Robot | XC230595 | Compile Error | / | / | C++14 | 249b | 2024-07-19 22:57:47 | 2024-07-19 22:57:47 |
Judging History
answer
// rows
for (int i = 1; i <= n; i++) {
int prev = 0;
for (int j = 1; j <= n+1; j++) {
if (!carpet[i][j]) continue;
if (j-prev-1 != 0) ans = min(j-prev-1, ans);
prev = j;
}
}
詳細信息
answer.code:2:5: error: expected unqualified-id before ‘for’ 2 | for (int i = 1; i <= n; i++) { | ^~~ answer.code:2:21: error: ‘i’ does not name a type 2 | for (int i = 1; i <= n; i++) { | ^ answer.code:2:29: error: ‘i’ does not name a type 2 | for (int i = 1; i <= n; i++) { | ^