Another thing you can do is use Inform’s 6.36 compiler or higher. This has the added benefit of building your source faster.
Here’s a thread that may help. It will get rid of all need for use MAX_ variables, which can get demoralizing as your projects grow and it seems like your code should compile.
TLDR there’s a file called inform-633.exe in some directory. For me it’s C:\Program Files (x86)\Inform 7\Compilers\inform-633.exe. Go to archive.org, find inform-636.exe (6.3.6 version of the compiler) and drop it in that directory, moving inform-633.exe to another to be safe (don’t delete it til you know it works!)