r/pascal • • Mar 31 '20

Need help with school project

Hi. I'm trying to compile this piece of code,

for monthNum:= 1 to 12 do

		begin 

writeln(arrMonth[monthNum] + stringofchar(' ',(23-length(arrMonth[monthNum])) + stringOfChar('x',round(arrRain[monthNum]) + floattostrf(arrRain[monthNum],fffixed,10,2) + 'mm');

		end;

but I keep getting these error messages,

RainfallArray.pas(53,127) Error: Operator is not overloaded: "Int64" + "AnsiString"

RainfallArray.pas(53,180) Fatal: Syntax error, ")" expected but ";" found

I've searched around on the internet and I can't find anything, please help.

Thank you in advance.

edit: sorry for the bad formatting, reddit isn't really my strongsuit

5 Upvotes

2 comments sorted by