/in/foo.cc: In function 'int FindiMinPos(int*, int)':
/in/foo.cc:16:14: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i]>0 && a[i]<min)
~~~~~~~^~~~~~~~~~~
/in/foo.cc:20:9: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
return k;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:14: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i]>0 && a[i]<min)
~~~~~~~^~~~~~~~~~~
/in/foo.cc:6:8: note: 'min' was declared here
int k,min;
^~~
/in/foo.cc:16:14: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i]>0 && a[i]<min)
~~~~~~~^~~~~~~~~~~
/in/foo.cc:6:8: note: 'min' was declared here
int k,min;
^~~
/in/foo.cc:34:11: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<m<<" "<<n;
^~~
/in/foo.cc:34:17: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<m<<" "<<n;
^