/in/foo.cc: In function 'int main()':
/in/foo.cc:5:17: error: conflicting declaration 'int a [1000]'
int a,i,a[1000];
^
/in/foo.cc:5:7: note: previous declaration as 'int a'
int a,i,a[1000];
^
/in/foo.cc:9:14: error: invalid types 'int[int]' for array subscript
cin >> a[i];
^
/in/foo.cc:14:12: error: invalid types 'int[int]' for array subscript
if (a[i] >= a[i - 1] && a[i] >= a[i + 1])
^
/in/foo.cc:14:24: error: invalid types 'int[int]' for array subscript
if (a[i] >= a[i - 1] && a[i] >= a[i + 1])
^
/in/foo.cc:14:32: error: invalid types 'int[int]' for array subscript
if (a[i] >= a[i - 1] && a[i] >= a[i + 1])
^
/in/foo.cc:14:44: error: invalid types 'int[int]' for array subscript
if (a[i] >= a[i - 1] && a[i] >= a[i + 1])
^
/in/foo.cc:19:10: error: invalid types 'int[int]' for array subscript
if (a[0] >= a[1] && a[0]>=a[a-1])
^
/in/foo.cc:19:18: error: invalid types 'int[int]' for array subscript
if (a[0] >= a[1] && a[0]>=a[a-1])
^
/in/foo.cc:19:26: error: invalid types 'int[int]' for array subscript
if (a[0] >= a[1] && a[0]>=a[a-1])
^
/in/foo.cc:19:34: error: invalid types 'int[int]' for array subscript
if (a[0] >= a[1] && a[0]>=a[a-1])
^
/in/foo.cc:21:12: error: invalid types 'int[int]' for array subscript
if (a[a-1]>=a[a-2] && a[a-1]>=a[0])
^
/in/foo.cc:21:20: error: invalid types 'int[int]' for array subscript
if (a[a-1]>=a[a-2] && a[a-1]>=a[0])
^
/in/foo.cc:21:30: error: invalid types 'int[int]' for array subscript
if (a[a-1]>=a[a-2] && a[a-1]>=a[0])
^
/in/foo.cc:21:36: error: invalid types 'int[int]' for array subscript
if (a[a-1]>=a[a-2] && a[a-1]>=a[0])
^