fork download
  1. var
  2. x=0, y=0: real;
  3. begin
  4. for i := 1 to 10 do
  5. x:= x+0,2;
  6. y:= 0,25*x*x*x+x-1,2502;
  7. writeln('y = ', y);
  8. end;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
var
^
Main.java:3: error: class, interface, or enum expected
begin
^
Main.java:6: error: class, interface, or enum expected
y:= 0,25*x*x*x+x-1,2502;
^
Main.java:7: error: class, interface, or enum expected
writeln('y = ', y);
^
Main.java:7: error: unclosed character literal
writeln('y = ', y);
        ^
Main.java:7: error: unclosed character literal
writeln('y = ', y);
             ^
Main.java:8: error: class, interface, or enum expected
end;
^
7 errors
stdout
Standard output is empty