/in/foo.cc: In function 'int uper_bound(int, int, int)':
/in/foo.cc:9:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[mid]<k)x=mid-1;uper_bound(x,y,k);
^~
/in/foo.cc:9:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(a[mid]<k)x=mid-1;uper_bound(x,y,k);
^~~~~~~~~~
/in/foo.cc:10:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[mid]>k)y=mid+1;uper_bound(x,y,k);
^~
/in/foo.cc:10:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(a[mid]>k)y=mid+1;uper_bound(x,y,k);
^~~~~~~~~~
/in/foo.cc: In function 'int lowr_bound(int, int, int)':
/in/foo.cc:18:23: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[mid]<k)x=mid-1;lowr_bound(x,y,k);
^~
/in/foo.cc:18:43: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(a[mid]<k)x=mid-1;lowr_bound(x,y,k);
^~~~~~~~~~
/in/foo.cc:19:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[mid]>k)y=mid+1;lowr_bound(x,y,k);
^~
/in/foo.cc:19:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(a[mid]>k)y=mid+1;lowr_bound(x,y,k);
^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:80: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d\n",upper_bound(a+1,a+n+1,y)-lower_bound(a+1,a+n+1,x));
^
/in/foo.cc: In function 'int uper_bound(int, int, int)':
/in/foo.cc:12:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.cc: In function 'int lowr_bound(int, int, int)':
/in/foo.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^