Interesting. I ran your code and only see one fail - input of 0 rows. The instructions were to accept any non-negative up to 23. Perhaps you forgot that this INCLUDES 0 through 23? Your code needs to be able to "print a pyramid of 0 rows." If you make "1" simple change, your program should work 100%.
As for the other errors, I'm thinking that you may be running an earlier version of the code?
If this answers your question, please click the check mark to accept this and remove the question from the unanswered pool. Let's keep up on forum maintenance. ;-)