MIPS "Invalid language element:" on symbol names like 1try_msg [duplicate]
You left out a crucial part of the error message, namely what the invalid language element was.
What the assembler is complaining about is the label 1dimensional
. It's common for assemblers to only allow letters and underscores (and possibly a single .
) as the first character of a label. So change the name of that label to something that meets that requirement, e.g. onedimensional
.