I'm really new to prolog and I'm trying out some examples. I'm getting the error
ERROR: Undefined procedure: eats/2 (DWIM could not correct goal)
when I run the rule.
Why is it showing if my rule is true? Please see rule below from my .pl file. This is taken from an example.
eats(fred,oranges). /* "Fred eats oranges" */
Prolog command consult: eats(fred,oranges).
Any explanation for this error would be very helpful.