foo.cc: In function ‘int FindiMinPos(int, int*)’:
foo.cc:15:16: warning: ‘num’ may be used uninitialized [-Wmaybe-uninitialized]
15 | return num;
| ^~~
foo.cc:6:27: note: ‘num’ was declared here
6 | int minpro=100000,num;
| ^~~
foo.cc: In function ‘int main()’:
foo.cc:31:33: warning: ‘num’ may be used uninitialized [-Wmaybe-uninitialized]
31 | cout<<FindiMinPos(n,a)<<" "<<FindiMinPos(m,b)<<endl;
| ^~~
foo.cc:6:27: note: ‘num’ was declared here
6 | int minpro=100000,num;
| ^~~
foo.cc:31:53: warning: ‘num’ may be used uninitialized [-Wmaybe-uninitialized]
31 | cout<<FindiMinPos(n,a)<<" "<<FindiMinPos(m,b)<<endl;
| ^
foo.cc:6:27: note: ‘num’ was declared here
6 | int minpro=100000,num;
| ^~~