/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:10:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (f[j]==-1) dfs(j);if (f[j]+1>f[i]) f[i]=f[j]+1;}
^~
/in/foo.cc:10:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (f[j]==-1) dfs(j);if (f[j]+1>f[i]) f[i]=f[j]+1;}
^~
/in/foo.cc:11:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (f[i]==-1) f[i]=0;if (f[i]>ans) ans=f[i];r++;h[i]=r;
^~
/in/foo.cc:11:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (f[i]==-1) f[i]=0;if (f[i]>ans) ans=f[i];r++;h[i]=r;
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=1;i<=n;i++) if (f[i]==-1) dfs(i);printf("%d",ans);
^~~
/in/foo.cc:22:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (i=1;i<=n;i++) if (f[i]==-1) dfs(i);printf("%d",ans);
^~~~~~