/in/foo.cc: In function 'int FindiMinPos(int, int*)':
/in/foo.cc:16:4: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]<k)
^~
/in/foo.cc:21:9: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
return j;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:4: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]<k)
^~
/in/foo.cc:6:10: note: 'k' was declared here
int i,j,k;
^
/in/foo.cc:16:4: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]<k)
^~
/in/foo.cc:6:10: note: 'k' was declared here
int i,j,k;
^
/in/foo.cc:36:27: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<FindiMinPos(n1,a)<<" "<<FindiMinPos(n2,b);
^~~
/in/foo.cc:36:49: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<FindiMinPos(n1,a)<<" "<<FindiMinPos(n2,b);
^