fork download
  1. count(0):-!.
  2. count(X):-
  3. writef('%t\n',[X]),
  4. succ(XN,X),
  5. count(XN).
  6.  
  7. :- count(100).
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pl:7: warning: unknown directive count/1 - maybe use initialization/1 - directive ignored
/home/NhpBVt/gplcO0s3gb.o: In function `Lpred1_1':
(.text+0xa7): undefined reference to `predicate(writef/2)'
/home/NhpBVt/gplcO0s3gb.o: In function `Lpred1_1':
(.text+0xd1): undefined reference to `predicate(succ/2)'
collect2: ld returned 1 exit status
compilation failed
stdout
Standard output is empty