[eclipse-clp-users] number expected in set_up_ic_con

From: Philippe de Rochambeau <phiroc_at_...22...>
Date: Thu, 4 Dec 2014 21:03:28 +0100
Hello,

when I run the following program, whose purpose is to generate a list of values which when added two by two, are equal to 10,

:- lib(ic).
solve(A1) :-
        Total = 10,
        length(A1, 3),
        A1 :: 0..10,
        A1 + A1 #= Total,
        labeling(A1).

I get the following error message:

"number expected in set_up_ic_con(7, 1, -1 * 10…"

What am I doing wrong?

Best regards,

Philippe
Received on Thu Dec 04 2014 - 20:03:36 CET

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:21 CEST