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