foo.cc:3:27: error: conflicting declaration 'int b [100001]'
int n,b,e[100001],b[100001],r[200002],l[200002];
^
foo.cc:3:7: note: previous declaration as 'int b'
int n,b,e[100001],b[100001],r[200002],l[200002];
^
foo.cc: In function 'int main()':
foo.cc:11:23: error: invalid types 'int[int]' for array subscript
if(e[i]==b) {t=i;b[i]=0;}
^
foo.cc:12:22: error: invalid types 'int[int]' for array subscript
else if(e[i]>b) b[i]=1;
^
foo.cc:13:11: error: invalid types 'int[int]' for array subscript
else b[i]=-1;
^
foo.cc:18:11: error: invalid types 'int[int]' for array subscript
sum+=b[i];
^
foo.cc:24:11: error: invalid types 'int[int]' for array subscript
sum+=b[i];
^