language: Prolog (swi) (swipl 5.6.64)
date: 111 days 10 hours ago
link:
可見度: public
1
2
3
4
5
6
7
p(X,X):-q(X,Y).
q(X,Y):-r(X),s(X,Y),t(Y).
q(b,a).
r(b).
s(b,c).
s(X,Y):-s(y,X).
t(d).
  • upload with new input
  • 結果: Success     time: 0.02s    記憶體: 6204 kB     回傳值: 0

    1
    2
    10
    9
    0
    10
    42
    Warning: /home/Zw1eTd/prog.pl:1:
    	Singleton variables: [Y]
    Warning: /home/Zw1eTd/prog.pl:6:
    	Singleton variables: [Y]
    
    ERROR: Stream user_input:2:10 Syntax error: Unexpected end of file