/in/foo.cc: In function 'int FindMaxNeg(int*, int)':
/in/foo.cc:16:12: warning: 'maxneg' may be used uninitialized in this function [-Wmaybe-uninitialized]
return maxneg;
^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:32:33: warning: 'maxneg' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout << FindMaxNeg(a,n1) << " " << FindMaxNeg(b,n2);
^~~
/in/foo.cc:32:56: warning: 'maxneg' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout << FindMaxNeg(a,n1) << " " << FindMaxNeg(b,n2);
^