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