0_0_16548953_7589.cpp: In function 'int solve(int*, int, int)':
0_0_16548953_7589.cpp:8:21: error: 'inf' was not declared in this scope
int left_sum = -inf, sum = 0;
^
0_0_16548953_7589.cpp:10:9: error: 'sum' was not declared in this scope
sum += a[i];
^
0_0_16548953_7589.cpp:11:37: error: 'max' was not declared in this scope
left_sum = max(left_sum, sum);
^
0_0_16548953_7589.cpp:13:27: error: 'sum' was not declared in this scope
int right_sum = -inf; sum = 0;
^
0_0_16548953_7589.cpp:16:39: error: 'max' was not declared in this scope
right_sum = max(right_sum, sum);
^
0_0_16548953_7589.cpp:20:31: error: 'max' was not declared in this scope
return max(max(LEFT, RIGHT), MID);
^
0_0_16548953_7589.cpp:20:37: error: 'max' was not declared in this scope
return max(max(LEFT, RIGHT), MID);
^
0_0_16548953_7589.cpp:20:37: error: redeclaration of '<typeprefixerror>max'
0_0_16548953_7589.cpp:20:31: note: previous declaration '<typeprefixerror>max'
return max(max(LEFT, RIGHT), MID);
^
|