Error thrown

Cannot use a scalar value as an array