foo.cc: In function 'int main()':
foo.cc:8:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=0;i<=999999;i++) for (j=1;j<=6;j++) f[i][j]=0;d[6]=1;for (i=5;i;i--) d[i]=d[i+1]*10;
^~~
foo.cc:8:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (i=0;i<=999999;i++) for (j=1;j<=6;j++) f[i][j]=0;d[6]=1;for (i=5;i;i--) d[i]=d[i+1]*10;
^
foo.cc:9:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
a[1]=0;for (i=1;i<=6;i++) {scanf("%c",&x);j=x-'0';a[1]=a[1]*10+j;}b[1]=1;c[1]=0;f[a[1]][1]=1;scanf("%c",&x);
~~~~~^~~~~~~~~
foo.cc:9:103: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
a[1]=0;for (i=1;i<=6;i++) {scanf("%c",&x);j=x-'0';a[1]=a[1]*10+j;}b[1]=1;c[1]=0;f[a[1]][1]=1;scanf("%c",&x);
~~~~~^~~~~~~~~
foo.cc:10:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
a[0]=0;for (i=1;i<=6;i++) {scanf("%c",&x);j=x-'0';a[0]=a[0]*10+j;}if (a[0]==a[1]) {printf("%d",0);return 0;}
~~~~~^~~~~~~~~