fork download
  1. CLAUSES
  2.  
  3. father(zeb, john_boy_sr).
  4. father(john_boy_sr, john_boy_jr).
  5. father(a, b).
  6. father(b, c).
  7.  
  8. ancestor(X, Y, Z):- father(X,Y), father(Y, Z).
  9.  
  10. GOAL
  11.  
  12. ancestor(X, Y, Z), write(X,-,Y,-,Z),nl.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pl:3:1: syntax error: . or operator expected after expression
prog.pl:12:1: syntax error: . or operator expected after expression
	2 error(s)
compilation failed
stdout
Standard output is empty