Maksimali suma

Taškai: 0

Compile: FAIL

max.cpp: In function ‘int main()’: max.cpp:10:15: error: ‘INT_MIN’ was not declared in this scope int max = INT_MIN, currentMax = 0, start =0, end = 0, temp=0; ^ max.cpp:19:9: error: ‘currentMax’ was not declared in this scope currentMax += arr[i]; ^ max.cpp:22:13: error: ‘start’ was not declared in this scope start = temp; ^ max.cpp:22:21: error: ‘temp’ was not declared in this scope start = temp; ^ max.cpp:23:17: error: overloaded function with no contextual type information end = i; ^ max.cpp:27:13: error: ‘temp’ was not declared in this scope temp = i + 1; ^ max.cpp:30:12: error: ‘start’ was not declared in this scope out << start+1 << " " << end+1; ^ max.cpp:30:34: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ out << start+1 << " " << end+1; ^

nr.resulttimemessage