C: array[1..96] of char = ('A', 'a', 'B', 'b', 'C', 'c', 'D', 'd', 'E', 'e', 'F', 'f', 'G', 'g', 'H', 'h', 'I', 'i', 'J', 'j', 'K', 'k', 'L', 'l', 'M', 'm', 'N', 'n', 'O', 'o', 'P', 'p', 'Q', 'q', 'R', 'r', 'S', 's', 'T', 't', 'U', 'u', 'V', 'v', 'W', 'w', 'X', 'x', 'Y', 'y', 'Z', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '!', '@', '#', '$', '%', '^', '&', '*', '_', '+', 'тут', '~', '/', '?', ';', ':', '[', ']', '{', '}', '!', '"', '№', ';', '%', ':', '?', '*', '(', ')', '-', '=');
ошибка: Ожидалось 96 элементов, а их 96.
[details=полный код]program z;
uses crt;
const
C: array[1…96] of char = (‘A’, ‘a’, ‘B’, ‘b’, ‘C’, ‘c’, ‘D’, ‘d’, ‘E’, ‘e’, ‘F’, ‘f’, ‘G’, ‘g’, ‘H’, ‘h’, ‘I’, ‘i’, ‘J’, ‘j’, ‘K’, ‘k’, ‘L’, ‘l’, ‘M’, ‘m’, ‘N’, ‘n’, ‘O’, ‘o’, ‘P’, ‘p’, ‘Q’, ‘q’, ‘R’, ‘r’, ‘S’, ‘s’, ‘T’, ‘t’, ‘U’, ‘u’, ‘V’, ‘v’, ‘W’, ‘w’, ‘X’, ‘x’, ‘Y’, ‘y’, ‘Z’, ‘z’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ‘0’, ‘!’, ‘@’, ‘#’, ‘$’, ‘%’, ‘^’, ‘&’, ‘’, ‘_’, ‘+’, ‘', '~', '/', '?', ';', ':', '[', ']', '{', '}', '!', '"', '№', ';', '%', ':', '?', '*', '(', ')', '-', '='); D: array[1..96] of char = ('C', 'c', 'D', 'd', 'E', 'e', 'F', 'f', 'G', 'g', 'H', 'h', 'I', 'i', 'J', 'j', 'K', 'k', 'L', 'l', 'M', 'm', 'N', 'n', 'O', 'o', 'P', 'p', 'Q', 'q', 'R', 'r', 'S', 's', 'T', 't', 'U', 'u', 'V', 'v', 'W', 'w', 'X', 'x', 'Y', 'y', 'Z', 'z', 'A', 'a', 'B', 'b', '5', '6', '7', '8', '9', '0', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', '
’, ‘~’, ‘/’, ‘?’, ‘;’, ‘:’, ‘[’, ‘]’, ‘{’, ‘}’, ‘!’, ‘"’, ‘№’, ‘;’, ‘%’, ‘:’, ‘?’, '’, ‘-’, ‘=’, ‘1’, ‘2’, ‘3’, ‘4’);
procedure intoout;
var
outp, inp: text; A: array[1…36] of char; B: array[1…36] of char; i, j: integer;
begin
assign(inp, pass_in);reset(b); for i := 1 to 37 do begin readln(inp, A[i]); end;
for i := 1 to 37 do begin j := 1; while (j <= 37) and (A[i] <> C[j]) do inc(j); if j <= 37 then B[i] := D[j]; end;
assign(outp, pass_out);rewrite(outp);
for i := 1 to 37 do writeln(outp, B[i], ’ '); end;
begin intoout; end.[/details]