It will exit immediately after runnning code.
Opened this issue · 0 comments
i12o commented
Not knowing your repository, I recently read that paper and OCRed the report.
I had trouble in my scanned and edited code, and I found your repository.
With your code, I found invalid line in my scaned code. Now it's working correctly.
Many thanks for your work.
But I guess that orignal code have an error in initialize() function.
After malloc scrapfirst, it checks (*scrapfirst).pos before it initialized.
So binpack always exit with message "Insufficient memory available".
It might depend on OS, compiler, but I believe the line should be
if (scrapfirst == NULL) {
printf("Insufficient memory available\n");
exit(1);
}
Anyway, thank you for your code!