Pass array of unknown size to function

In reply to dave_59:

After too many time of debug:( I founnd out that the error is because I didn’t write input before int size (in the arguments). Why shold I write this? input should be the default port…