为什么我的Prolog代码出现实例化问题?

时间:2019-04-16 04:20:27

标签: prolog zebra-puzzle

我要解决的问题是:

布朗,克拉克,琼斯和史密斯是为他们服务的4位重要公民     社区为行为学家,银行家,医生和律师,尽管不一定     分别。

  Brown, who is more conservative than Jones but more liberal than Smith,
  is a better golfer than the men who are younger than he is and has a
  larger income than the men who are older than Clark.

  The banker, who earns more than the architect, is neither the youngest
  nor the oldest.

  The doctor, who is a poorer golfer than the lawyer, is less conservative
  than the architect.

  As might be expected, the oldest man is the most conservative and has the
  largest income, and the youngest man is the best golfer.

What is each man's profession?

我正在尝试应用我在网上找到的解决方案:http://www.kernel-panic.org/pipermail/kplug-lpsg/2000-June/001101.html

但是,当我尝试运行它时。我不断收到错误消息,指出> / 2:参数没有充分实例化。

有人解决吗?

0 个答案:

没有答案