Hi;
Rosetta Code Task: “Josephus problem”, obvious problem, but what is the correct way to correct it?
gnatmake ./josephus.adb
gcc -c -I./ -I- ./josephus.adb
josephus.adb:8:46: error: “Index” is undefined (more references follow)
gnatmake: “./josephus.adb” compilation error
function Arg(Idx, Default: Positive) return Positive is – read Argument(Idx)
(if Ada.Command_Line.Argument_Count >= Index
then Positive’Value(Ada.Command_Line.Argument(Index)) else Default);
What am I not understanding here?
Thanks,
Retired_Build_Engineer