With Ada.Text_IO; Use Ada.Text_IO; With Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; procedure Prog is Large : array (0 .. 100) of Integer; Small : array (0 .. 3) of Integer;begin -- extract section from one array into another. Small(0 .. 3) := Large(10 .. 13);end;
Standard input is empty
gcc-4.6 -c -pipe -O2 prog.adb prog.adb:9:20: expected type of Small declared at line 6 prog.adb:9:20: found type of Large declared at line 5 gnatmake: "prog.adb" compilation error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!