fork download
  1. PREDICATES
  2.  
  3. father(string,string).
  4.  
  5. ancestor(string,string,string).
  6.  
  7. CLAUSES
  8.  
  9. father(a, b).
  10. father(b, c).
  11.  
  12. ancestor(X, Y, Z):- father(X,Y), father(Y, Z).
  13.  
  14. GOAL
  15.  
  16. 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:9:1: syntax error: . or operator expected after expression
prog.pl:12: warning: discontiguous predicate ancestor/3 - clause ignored
prog.pl:16:1: syntax error: . or operator expected after expression
	3 error(s)
compilation failed
stdout
Standard output is empty