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