Auto-generated code for Pascal is faulty

// Auto-generated code below aims at helping you parse
// the standard input according to the problem statement.
program Answer;
{$H+}
uses sysutils, classes, math;

// Helper to read a line and split tokens
procedure ParseIn(Inputs: TStrings) ;
const Line : string;
begin
    readln(Line);
    Inputs.Clear;
    Inputs.Delimiter := ' ';
    Inputs.DelimitedText := Line;
end;

const
    S1 : String;
    S2 : String;
    Inputs: TStringList;
begin
    Inputs := TStringList.Create;
    ParseIn(Inputs);

    // Write an action using writeln()
    // To debug: writeln(StdErr, 'Debug messages...');

    writeln('answer');
    flush(StdErr); flush(output); // DO NOT REMOVE
end.

In line 9 “const” has to be “var”.
In line 17 “const” has to be “var”.

Such a trival thing… Such wow.

The parsing of longs (see here) is still broken, as we are on it.

Yes sorry about that, we have regressions on all our stub generators due to a major refactor which had some unforeseen consequences. We’ll fix ASAP.

2 Likes

Okay, that’s fine. Good to know that the problem get noticed. Have a good one at fixing the problem! :slight_smile:

Seems to be fixed now. At least for Pascal. I don’t know if is fixed for other languages too. Very good! :slight_smile: Now I’m more motivated to send feedback and bug reports because I know the devs actually respond.

Keep it up. :smiley:

1 Like

and if we don’t answer, it doesn’t hurt to chase the issue. I’m checking every forum post. I usually add an internal ticket for every bug reported here. Then, it depends if we have the time to fix the issue. :slight_smile:

1 Like

All fixed, including the parsing of longs.

3 Likes