Hello everyone, I am extremely confused and I have no idea how to fix this:
When I compile the program I get this message :Error:Incompatible Types:got "SHORTSTRING" expected "CHAR"
Here's the section of the program that's giving me issues:
IF selection=3 then
Begin
Writeln('Welcome to option 3');
Writeln('The winners for each event are as follows:');
FOR i:=1 to 39 do
Begin
IF event[i]='100m' then
Begin
event100m[i]:=timeran[i];
Winner_100m:=timeran[i];
Name_1[i]:=names[i];
School_1[i]:=school[i];
End;
End;
FOR i:=1 to 8 do
Begin
IF event100m[i]<Winner_100m then
Begin
Winner_100m:=event100m[i];
K:=i;
End;
End;
Writeln('Name: ',Name_1[K],' School: ',School_1[K],' Event: 100m',' Time Ran: ', Winner_100m:2:2);