> For the complete documentation index, see [llms.txt](https://docs.sannybuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sannybuilder.com/troubleshooting/errors/0080.md).

# 0080: Non-negative integer number expected

The compiler expects a number greater than or equal to zero but finds something different.

For example, the error could be thrown if a negative number is used for the array [element index](/language/data-types/arrays.md#accessing-array-elements-after-declaration) or as the second parameter to the `Alloc` [command](/language/instructions/built-in-commands.md#alloc).

**Possible solutions:** use a number greater than or equal to zero:

```
$var[-1] = 0 // error
$var[1] = 0 // OK
```
