/in/foo.cc: In function 'int search(int)':
/in/foo.cc:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(j=1;j<=8;j++);
^~~
/in/foo.cc:15:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if((!b[j])&&(!c[i+j])&&(!d[i-j+7]))
^~
/in/foo.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int print()':
/in/foo.cc:36:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int search(int)':
/in/foo.cc:15:12: warning: array subscript is above array bounds [-Warray-bounds]
if((!b[j])&&(!c[i+j])&&(!d[i-j+7]))
~~~^
/in/foo.cc:18:8: warning: array subscript is above array bounds [-Warray-bounds]
b[j]=1;
~~~^
/in/foo.cc:23:8: warning: array subscript is above array bounds [-Warray-bounds]
b[j]=0;
~~~^