Ah, alright. Well I did that in a command and used the params with that so it gave me an error. :P
yeahhh my bad i forgot that it will give error in commonly using compiler (not in modern) as the array size is unknown due as checking is done before calculation.