Error: Class data is not allowed in non-procedural context

In reply to vickydhudashia92:
The signals involved in a force statement must be wires or static variables. Change to

static int i;

and I would change i to something more unique so it is only used for that purpose, like shift_left.