How can I resolve this error? I have also added the code block under the error.

ERROR: A5.mod: line 34, cols 1-4: syntax error, unexpected NAME, expecting CORR or VAR

Error using dynare (line 217)

DYNARE: preprocessing failed

var n c w M i pi r g;

varexo e;

parameters beta rho sigmae;

beta = 0.95;

rho = 0.9;

sigmae = 0.01;

model;

c = beta/(1+g(+1)+beta);

n = c;

(1+pi) = (1+g)*(1+g+beta)/(1+g(+1)+beta);

w = 1;

i = (1+g(+1))/beta - 1;

(1+r)*(1+pi(+1)) = (1+i);

g = rho * g(-1) + e;

M = M(-1) * (1+g);

end;

initval;

g = 0;

w = 1;

pi = 0;

r = 1/beta - 1;

i = 1/beta - 1;

n = beta/(1 + beta);

c = beta/(1 + beta);

M = 1;

end;

steady;

shocks;

vare = sigmae^2;

end;

check;

stoch_simul(order=1,irf=40,hp_filter=1600);