program p;
type Litere = (a, b);
var x : Litere; y:char; i:integer;
begin
x:=a; i:=ord(x); writeln(i);
end.
Compile wrong error:
"The type of one or more arguments, is wrong, when calling the "ord" function.
Accept functions:
Ord(Char):integer"
This error is incorrect because the program is correct and should not be error at compiler.
program p; type Litere = (a, b); var x : Litere; y:char; i:integer; begin x:=a; i:=ord(x); writeln(i); end.
Compile wrong error: "The type of one or more arguments, is wrong, when calling the "ord" function. Accept functions: Ord(Char):integer" This error is incorrect because the program is correct and should not be error at compiler.![screenshot_2017-10-09-21-34-46](https://user-images.githubusercontent.com/32650506/31353690-324ecf00-ad3c-11e7-9be3-dd2267b35706.png)