Am trying to get prolog to compare to list of atoms for occurencs in the same location. am also trying to get it to return a list with the occurences removed, but for some reason am getting a list with the occurences, and an unbounded veriable.
My code is below.
correct(_,_,0,_):-...