ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

BIG PROBLEM *PLEASE READ THE POST
Posted by Smasher_nine 17 Oct 2000 00:06
why doesnt the following piece of code work.It gets
compilation error but with bp 7.0 it compiles fine.Any
ideas?

var IND : array [1..4] of byte;
  n, x1, y1, x2, y2, x3, y3, fx1, fx2, fx3 : byte;
begin
  n := 10;
  for IND[1] := 1 to n - 2 do
    for IND[2] := IND[1] + 1 to n - 1 do
      for IND[3] := IND[2] + 1 to n do
        for IND[4] := 1 to 2 do
        begin end;
end.
Re: BIG PROBLEM *PLEASE READ THE POST
Posted by LuoJi 17 Oct 2000 08:04
the array can not be used in "for".
So you can't use IND[i] in "for" statements.