foo.cc: In function 'int FindMaxNeg(int*, int)':
foo.cc:3:18: error: 'INT_MIN' was not declared in this scope
    3 |     int maxNeg = INT_MIN;
      |                  ^~~~~~~
foo.cc:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
    1 | #include <iostream>
  +++ |+#include <climits>
    2 | int FindMaxNeg(int arr[], int size) {
foo.cc: In function 'int main()':
foo.cc:26:20: error: 'INT_MIN' was not declared in this scope
   26 |     if (maxNegA == INT_MIN) {
      |                    ^~~~~~~
foo.cc:26:20: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
foo.cc:32:20: error: 'INT_MIN' was not declared in this scope
   32 |     if (maxNegB == INT_MIN) {
      |                    ^~~~~~~
foo.cc:32:20: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
   
  
    [Hydro](https://hydro.ac)提供评测服务