0_0_39374767_13189.cpp:3:21: error: 'vector' has not been declared
3 | int maxSubArray(vector<int>& nums) {
| ^~~~~~
0_0_39374767_13189.cpp:3:27: error: expected ',' or '...' before '<' token
3 | int maxSubArray(vector<int>& nums) {
| ^
0_0_39374767_13189.cpp: In member function 'int Solution::maxSubArray(int)':
0_0_39374767_13189.cpp:4:20: error: 'INT_MAX' was not declared in this scope
4 | int sum = -INT_MAX,b = 0;
| ^~~~~~~
0_0_39374767_13189.cpp:1:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
+++ |+#include <climits>
1 | class Solution {
0_0_39374767_13189.cpp:5:28: error: 'nums' was not declared in this scope
5 | for(int i = 0; i < nums.size(); i ++)
| ^~~~
0_0_39374767_13189.cpp:7:13: error: 'b' was not declared in this scope
7 | b = b > 0 ? b + nums[i] : nums[i];
| ^
0_0_39374767_13189.cpp:8:19: error: 'max' was not declared in this scope
8 | sum = max(sum, b);
| ^~~
|