odd(X):- 1 is mod(X,2).even(X):- 0 is mod(X,2).comp(X):- 1 is odd(X).
comp(3).
prog.pl:3-4: fatal error: unknown operation in arithmetic expression (odd/1) compilation failed
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!