/in/foo.cc: In function 'int main()':
/in/foo.cc:38:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(f=false) b[k]=1;
^
/in/foo.cc:40:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++) cout<<b[i]<<" "; cout<<endl;cout<<pos<<endl;
^~~
/in/foo.cc:40:41: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=1;i<=n;i++) cout<<b[i]<<" "; cout<<endl;cout<<pos<<endl;
^~~~