reset password
Author Message
akaur21
Posts: 8
Posted 22:01 Nov 07, 2019 |

I am getting this error:

Error: invalid integer literal in line no. 29

Error: syntax error, unexpected ':', expecting FZ_INT_LIT in line no. 29

Process finished with non-zero exit code 1

Even the line 29 in my code is just a variable declaration: 

var 12..999: a;

Has anyone encountered the same problem?

(I am trying to process a large array, can it be the issue?)

rabbott
Posts: 1649
Posted 22:25 Nov 07, 2019 |

You might have left off the semi-colon from the end of the previous line. If not that, please post more of the model. It's hard to tell what's wrong from a single line.

akaur21
Posts: 8
Posted 08:49 Nov 08, 2019 |

I checked the issue is not missing semi-colon but something related to 32 bit integer overflow. I tried using different solvers and optimization levels to get clear understanding of the error.

I got this by using- Solver : Gecode Gist 6.1.1 [built-in] and Complier optimization level: -O5

Warning during presolve: GecodeRangeIter::max: Error: 2541865828329 outside 32-bit int.

Here is the something similar:

https://www.coursera.org/learn/basic-modeling/discussions/all/threads/TrAdw93UEeiv6RK9ZOq_wg

rabbott
Posts: 1649
Posted 22:02 Nov 08, 2019 |

Your link suggests it's a MiniZinc bug.