Hi, i´m quite new in pascal programing. Can someone explain me please why

function kolik(pocet:integer; retez: string):integer;
var 
      p: array[1..pocet] of integer; 
      pomocna,j,i,k,l,od,nep:integer;

is compiler telling me p: array[1..pocet] of integer; cannot evaluate this expression?
Thank you in advance

In pocet what value? Do that and will be happy:

function kolik(pocet:integer; retez: string):integer;
const
 pocent = 5;
var 
 p: array[1..pocet] of integer; 
 pomocna,j,i,k,l,od,nep:integer;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.