作业帮 > 综合 > 作业

Incompatible types:got Boolean expected LongInt pascal

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/29 11:44:27
Incompatible types:got Boolean expected LongInt pascal
progrma ex;
var
a,s,d:integer;
begin
readln(a,s,d);
if (a+s>d) and (a+d>s) and (s+d>a) then
if a=s=d then
if (a+1=s+1) or (a+1=d+1) or (s+1=d+1) then
write('XXXXXX')
else
write('ssss')
else write('sssss')
else
write('ssss');
end.
请问编译器报错:(7,11) Error:Incompatible types:got Boolean expected LongInt
求教正确答案
第七行应为 if (a=s) and (a=d) then