Stuck with Stan compiling with cmdstanr

Yeah it is with all the models.
Some models have this error, however there is no missing ; in the code.
Compiling Stan program…
Syntax error in ‘C:/Users/a0bha/AppData/Local/Temp/Rtmp6BK5Ex/model-41cc55fb2605.stan’, line 4, column 7 to column 8, parsing error:

 2:    int<lower=0> n; 
 3:    real<lower=0> alpha;
 4:    int x[n];
            ^
 5:    int y[n];
 6:  }

“;” expected after variable declaration.

mingw32-make: *** [make/program:50: C:\Users\a0bha\AppData\Local\Temp\Rtmp6BK5Ex\model-41cc55fb2605.hpp] Error 1

Error: An error occured during compilation! See the message above for more information.
In addition: Warning message:
In readLines(stan_file) :
incomplete final line found on ‘S:/JD Research/twosampleDPM-main/twosample-cauchy-2.stan’