foo.cc: In function 'int FindMinPos(int, int*)':
foo.cc:15:12: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized]
15 | return x;
| ^
foo.cc:6:22: note: 'x' was declared here
6 | int _min=INT_MAX,x;
| ^
foo.cc: In function 'int main()':
foo.cc:24:29: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized]
24 | cout<<FindMinPos(n1,a)<<' '<<FindMinPos(n2,b);
| ^~~
foo.cc:6:22: note: 'x' was declared here
6 | int _min=INT_MAX,x;
| ^
foo.cc:24:49: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized]
24 | cout<<FindMinPos(n1,a)<<' '<<FindMinPos(n2,b);
| ^
foo.cc:6:22: note: 'x' was declared here
6 | int _min=INT_MAX,x;
| ^