Please note: the language of this site will now be ENGLISH. Please do not use another language since visitors from different countries will participate in training.

How to declare a procedure in a unit with an array as one of its parameters

I know the title looks confusing. Basically it's to do with the first practice task on the IOI website. I am using pascal. We are supposed to write a procedure Order(n:longint; A:array of longint); which the grader calls. However in the 'interface' section of the unit, we cannot leave the procedure like that, nor can it be Order(n:longint; A:array [1..8] of longint); I've tried to pre-define the array using 'type xxx=array' but that doesn't work either.
Anyone any ideas?

asked Sep 19, 2012 in Languages by zhx.wang94

Please log in or register to answer this question.

NL: NIO UK: BIO Int: IOI
...