/in/foo.cc: In function 'int FindMaxNeg(int*, int)':
/in/foo.cc:16:1: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]>max&&a[i]<0)
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:1: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]>max&&a[i]<0)
^~
/in/foo.cc:5:5: note: 'max' was declared here
int max;
^~~
/in/foo.cc:16:1: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[i]>max&&a[i]<0)
^~
/in/foo.cc:5:5: note: 'max' was declared here
int max;
^~~