foo.cc:3:28: error: expected initializer before '.' token
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:15:2: error: 'l' was not declared in this scope
l[n]=r[n]=1;
^
foo.cc:15:7: error: 'r' was not declared in this scope
l[n]=r[n]=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];
^