0_0_22622683_20783.cpp: In function 'int main()':
0_0_22622683_20783.cpp:13:12: error: conflicting declaration 'int max [A]'
int max[A];
^
0_0_22622683_20783.cpp:9:10: note: previous declaration as 'int max'
int a, max, start = 1, end = 1, c = 1;
^
0_0_22622683_20783.cpp:15:8: error: invalid types 'int[int]' for array subscript
max[0] = num[0];
^
0_0_22622683_20783.cpp:18:9: error: invalid types 'int[int]' for array subscript
max[i] = max[i - 1] + num[i];
^
0_0_22622683_20783.cpp:18:22: error: invalid types 'int[int]' for array subscript
max[i] = max[i - 1] + num[i];
^
0_0_22622683_20783.cpp:19:13: error: invalid types 'int[int]' for array subscript
if (max[i] > max[i - 1]) {
^
0_0_22622683_20783.cpp:19:26: error: invalid types 'int[int]' for array subscript
if (max[i] > max[i - 1]) {
^
0_0_22622683_20783.cpp:20:16: error: invalid types 'int[int]' for array subscript
max = max[i];
^
0_0_22622683_20783.cpp:24:20: error: invalid types 'int[int]' for array subscript
max = max[i - 1];
^
|