/in/foo.c: In function 'main':
/in/foo.c:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
{ for(int i=0;i<100;i++)
^~~
/in/foo.c:10:14: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
a[i]=x%2;x=x/2;
^
/in/foo.c:19:21: error: 'i' undeclared (first use in this function)
for(int j=0;j<n-i;j++)
^
/in/foo.c:19:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:29:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]==1)
^~
/in/foo.c:31:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
break;
^~~~~
/in/foo.c:31:5: error: break statement not within loop or switch