extern array used without deref error