I forgot, Windows don't support that syntax:

int var_name[var];

You can fix it like in gh-1438, but in your case, you know the value of nd at compile time. So I would hard code a constant. Windows support

int var_name[4];