Maksimali suma
- [1] 2020-01-18 19:40 (0)
- [2] 2020-01-18 19:41 (0)
- [3] 2020-01-18 19:42 (7.1)
- [4] 2020-01-18 19:47 (0)
- [5] 2020-01-18 19:47 (78.6)
- [6] 2020-01-18 19:59 (92.9)
- [7] 2020-01-18 20:03 (78.6)
- [8] 2020-01-18 20:20 (100)
Taškai: 0
Compile: FAIL
max.cpp: In function ‘int maxSubArraySum(int*, int)’: max.cpp:17:22: error: ‘INT_MIN’ was not declared in this scope int max_so_far = INT_MIN, max_ending_here = 0, ^ max.cpp:22:9: error: ‘max_ending_here’ was not declared in this scope max_ending_here += a[i]; ^ max.cpp:27:13: error: ‘start’ was not declared in this scope start = s; ^ max.cpp:27:21: error: ‘s’ was not declared in this scope start = s; ^ max.cpp:28:17: error: overloaded function with no contextual type information end = i; ^ max.cpp:34:13: error: ‘s’ was not declared in this scope s = i + 1; ^ max.cpp:37:11: error: ‘start’ was not declared in this scope out<< start+1<<" "<< end+1; ^ max.cpp:37:30: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ out<< start+1<<" "<< end+1; ^
nr. | result | time | message |
---|