/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:12:11: error: 'i' was not declared in this scope
  if(visit[i+1][j]==1&&i+1<=n) return;
           ^
/in/foo.cc:12:16: error: 'j' was not declared in this scope
  if(visit[i+1][j]==1&&i+1<=n) return;
                ^
/in/foo.cc:18:11: error: 'i' was not declared in this scope
  if(visit[i][j+1]==1&&j+1<=m)return;
           ^
/in/foo.cc:18:14: error: 'j' was not declared in this scope
  if(visit[i][j+1]==1&&j+1<=m)return;
              ^
/in/foo.cc:24:11: error: 'i' was not declared in this scope
  if(visit[i][j-1]==1&&j-1>=0)return;
           ^
/in/foo.cc:24:14: error: 'j' was not declared in this scope
  if(visit[i][j-1]==1&&j-1>=0)return;
              ^
/in/foo.cc:30:11: error: 'i' was not declared in this scope
  if(visit[i-1][j]==1&&i-1>=0)return;
           ^
/in/foo.cc:30:16: error: 'j' was not declared in this scope
  if(visit[i-1][j]==1&&i-1>=0)return;
                ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:51:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  for(j=m;i=1;i<=n;i++) dfs(i,j);
            ^
/in/foo.cc:51:15: warning: for increment expression has no effect [-Wunused-value]
  for(j=m;i=1;i<=n;i++) dfs(i,j);
              ~^~~
/in/foo.cc:51:18: error: expected ')' before ';' token
  for(j=m;i=1;i<=n;i++) dfs(i,j);
                  ^
/in/foo.cc:51:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(j=m;i=1;i<=n;i++) dfs(i,j);
  ^~~
/in/foo.cc:51:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(j=m;i=1;i<=n;i++) dfs(i,j);
                   ^
/in/foo.cc:51:22: error: expected ';' before ')' token
  for(j=m;i=1;i<=n;i++) dfs(i,j);
                      ^
/in/foo.cc:52:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  for(j=1;i=n;j<=m;j++) dfs(i,j);
            ^
/in/foo.cc:52:15: warning: for increment expression has no effect [-Wunused-value]
  for(j=1;i=n;j<=m;j++) dfs(i,j);
              ~^~~
/in/foo.cc:52:18: error: expected ')' before ';' token
  for(j=1;i=n;j<=m;j++) dfs(i,j);
                  ^
/in/foo.cc:52:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(j=1;i=n;j<=m;j++) dfs(i,j);
  ^~~
/in/foo.cc:52:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(j=1;i=n;j<=m;j++) dfs(i,j);
                   ^
/in/foo.cc:52:22: error: expected ';' before ')' token
  for(j=1;i=n;j<=m;j++) dfs(i,j);
                      ^

信息

递交者
类型
递交
题目
P1294 拯救OIBH总部
语言
C++
递交时间
2019-04-11 19:37:48
评测时间
2019-04-11 19:37:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes