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