Well, you didn't say what the error was... but when I plugged this into spim I received:
SPIM Version 7.4 of January 1, 2009
Copyright 1990-2004 by James R. Larus (larus@cs.wisc.edu).
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /opt/local/share/spim/exceptions.s
The following symbols are undefined:
main
Instruction references undefined symbol at 0x00400014
[0x00400014] 0x0c000000 jal 0x00000000 [main] ; 180: jal main
Which implies that you are missing the main label. Add it right before your main function:
.text
.globl main
main:
li $t0, 12
...
This yielded the expected answer:
The number of pairs of rabbits in a year are: 233