/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);
^