Main.cc: In function 'int maxSubArraySum(std::vector&)':
Main.cc:9:22: error: 'INT_MIN' was not declared in this scope
int max_so_far = INT_MIN, max_ending_here = 0;
^
Main.cc:12:9: error: 'max_ending_here' was not declared in this scope
max_ending_here = max_ending_here + nums[i];
^