Problem | flamethrower_ex |
---|---|
User | YEethui |
Submission Time | 2023-11-02 19:31:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower_ex.cpp: In function ‘int maxSubArraySum(int*, int, int)’:
flamethrower_ex.cpp:4:22: error: ‘INT_MIN’ was not declared in this scope
4 | int max_so_far = INT_MIN, max_ending_here = 0;
| ^~~~~~~
flamethrower_ex.cpp:2:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
1 | #include <iostream>
+++ |+#include <climits>
2 | using namespace std;
flamethrower_ex.cpp:7:9: error: ‘max_ending_here’ was not declared in this scope
7 | max_ending_here = max_ending_here + a[i];
| ^~~~~~~~~~~~~~~