Maksimali suma

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.resulttimemessage