/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:22:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if (ans[i][j]!=-1)
    ^~
foo.cc:24:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if (j>0 && ans[i][j-1]!=-1) ans[i][j] += ans[i][j-1];
     ^~
foo.cc:24:9: error: 'j' was not declared in this scope
     if (j>0 && ans[i][j-1]!=-1) ans[i][j] += ans[i][j-1];
         ^
foo.cc:24:20: error: 'i' was not declared in this scope
     if (j>0 && ans[i][j-1]!=-1) ans[i][j] += ans[i][j-1];
                    ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2021-07-14 19:26:59
评测时间
2021-07-14 19:26:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes