program eight_b;
uses crt;
var x , y:integer;
var res:boolean;
BEGIN
writeln('input two numbers');
readln(x,y);
//writeln();
if x > 20 OR y > 20
then res := true;
else
res := false;
END.
fpc "untitled.pas" (in directory: .)
Compilation failed.
Free Pascal Compiler version 2.4.2 [2010/11/14] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for i386
Compiling untitled.pas
untitled.pas(26,7) Error: Incompatible types: got "Boolean" expected "LongInt"
untitled.pas(28,2) Fatal: Syntax error, ";" expected but "ELSE" found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
Что программа должна делать(на пхп)
<?
$a = $_POST[a];
$b = $_POST[b];
if $a > 20 or $b > 20 then $res = true;
else $res = false;
?>