This post was first published on my Wordpress page link
If you have tried to use this package to create algorithms in the ACM template for papers,
you must be come across this issue. If you only add the packate algorithm2e
with something like
you should have received a nice errors telling you “1616:Too many }’s” and “1617:Extra \fi \fi”.
To solve this annoying bug, that could make you lose a lot of valuable time, just add the following code before the import of the package.
I hope this will be useful for you like was for me :)
Cheers!