Maksimali suma

Taškai: 0

Compile: FAIL

max.cpp: In function ‘void 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:12: error: ‘start’ was not declared in this scope out << start<< " "<<end<< endl; ^

nr.resulttimemessage