error:incompatible types:got "bollean" expected "longint"

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/31 16:48:20

error:incompatible types:got "bollean" expected "longint"

if k1 and k2 then
begin
writeln('Error');
writeln('Thank you,Press Enter to Exit the Program');
readln;
halt;
end;
这句的判断错了,最后的小错误不应该啊
if 语句两个或以上的判断条件要打括号的
if (k1)and (k2) then begin