del(i,il,il).del(1,_,[]):-!.del(Num,[X|T],[X|T1]):- Num > 0, N1 is int(N+1), del(N,T,T1).
Standard input is empty
prog.pl:3: warning: singleton variables [N1] for del/3 prog.pl:3: fatal error: unknown operation in arithmetic expression (int/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!