/in/foo.cc: In function 'int main()':
/in/foo.cc:27:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (j=1; j<=n; j++)
^~~
/in/foo.cc:29:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (i=1; i<=n; i++) if (fa[i]==i) s++;
^~~
/in/foo.cc:11:17: warning: unused variable 'r1' [-Wunused-variable]
long n,i,j,k,x,r1,r2,s=0;
^~
/in/foo.cc:11:20: warning: unused variable 'r2' [-Wunused-variable]
long n,i,j,k,x,r1,r2,s=0;
^~