The following is my work for mario in pset1 and I do not understand the errors' meaning indicated in point 2.
#include <cs50.h>
#include <stdio.h>
int main (void)
{
//Getting user's input for height
int height;
do
{
printf ("Please enter the height within 1 to 23: ");
height = GetInt();
}
while ( height < 1 || height > 23 );
//a line consist of space and hash
for (int line = 0; line < height; line++)
{
// print spaces
for ( int space = height - line; space <= line; space--)
{
printf ( " " );
}
// print hashes
for ( int hash = 2; hash <= line + 2; hash++ )
{
printf ("#");
}
// print new line
printf ("\n");
}
}
The following are the errors feedback from CS50 in which I dont understand. i.e. killed by server? exit code? output? Need your help.....