1 2 3 4 5 6 7 8 9 10 | nalezy( X,[X|_] ). nalezy( X,[H|T] ) :- nalezy( X,T ). usun(X,[X|Reszta],Reszta). usun(X,[Y|Ogon],[Y|Reszta]) :- usun(X,Ogon,Reszta)->writeln(Reszta). sprawdz([H|T]):- nalezy(H,T)->usun(H,H|T,T). powt(A):- sprawdz(A), writeln(A). |
bmFsZXp5KCBYLFtYfF9dICkuCm5hbGV6eSggWCxbSHxUXSApIDotIG5hbGV6eSggWCxUICkuCgp1c3VuKFgsW1h8UmVzenRhXSxSZXN6dGEpLgp1c3VuKFgsW1l8T2dvbl0sW1l8UmVzenRhXSkgOi0KCXVzdW4oWCxPZ29uLFJlc3p0YSktPndyaXRlbG4oUmVzenRhKS4KCnNwcmF3ZHooW0h8VF0pOi0gbmFsZXp5KEgsVCktPnVzdW4oSCxIfFQsVCkuCgpwb3d0KEEpOi0gc3ByYXdkeihBKSwgd3JpdGVsbihBKS4=
-
upload with new input
-
result: Success time: 0.03s memory: 6204 kB returned value: 0
usun(1,[1,2,3,4],2,3,4).
Warning: /home/LURCfz/prog.pl:2: Singleton variables: [H] ERROR: Undefined procedure: usun/5 ERROR: However, there are definitions for: ERROR: usun/3 false.
-
result: Success time: 0.02s memory: 6204 kB returned value: 0
usun(1,[1,2,3,4],[2,3,4]).
Warning: /home/bG1w20/prog.pl:2: Singleton variables: [H] true EOF: halt
-
result: Success time: 0.03s memory: 6204 kB returned value: 0
Warning: /home/aihivb/prog.pl:2: Singleton variables: [H]



