Closed
Description
Hi, here is the example to reproduce the error:
array[1..5] of var 1..10: a = [1,2,3,4,5];
var 1..100: s;
constraint s = sum(j in 1..3)([a[i]| i in 1..5 where a[i] != 3][j]);
output [show(s)]; % shows 3, but the correct answer should be 7
Also when I replace 1..3
by 1..4
, MiniZinc reports:
Error: Unknown character in line no. 3
Metadata
Metadata
Assignees
Labels
No labels