[ incompatible types [ERROR]
Binary operator [: There was no global operator defined, which takes the type used.
struct A {
int j;
int operator [] (A a);
};
void main() {
A a;
int i;
int b[3];
i=a[a]; // ok
i=b[a]; // error
}
Use a type compatible to ì[ì. If there is no global operator for [, take an integer type.