Questions tagged [mario.more]
The mario.more tag has no usage guidance.
12
questions
0
votes
1
answer
56
views
Check does not like my spacing on Mario.sentimental. Is the program unwilling to print ' ' * 0 as no spaces?
I've run this in various configurations, when I remove excess spaces, it still prints out with a space at the beginning of each line. And the center spacing seems to be larger than check50 expects, ...
0
votes
2
answers
79
views
When printing mario problem the second triangle appears below the first one
#include <stdio.h>
#include <cs50.h>
int main(void)
{
//This do while loop checks if user entered number 1-8
int x;
do
{
x = get_int("Height: ");
}
while ...
0
votes
1
answer
49
views
Query related to Mario program(more) in CS50 pset1
I can't figure out the problem in my code, it successfully creates a pyramid but doesn't reprompt when value other than 1-8 is entered, also it gives a space before printing the pyramid, causing ...
0
votes
1
answer
30
views
Check50 issue pset1
This is the link that compares my output to expected output. https://submit.cs50.io/check50/cd17b70a3e377bfa9f3fabdff9d64aa91c23d9b3
Isn't it exactly the same. Still CS50 bot keeps rejecting it.
1
vote
2
answers
106
views
I don't know why check50 HATES ME?! mario.more
Here's my code for mario.more.
[removed solution code]
When i execute this code, it performs exactly how it should look according to Walkthrough:
But when I run check50, the terminal goes like ...
2
votes
2
answers
2k
views
PSET1:: Mario More Comfortable :: confused about check50 output
I am sorry if I miss something obvious here, but I am an absolute beginner. I get the following output from check50, which I am confused about:
I will attach my code below, but my output for 2 is:
...
3
votes
2
answers
175
views
Which loop can be replaced for nested for loops for PSET 1 (Mario More Comfortable)?
According to the cs50 style guide for C, more than 3 variables for iteration is not a good practice. I have done Pset 1 (Mario more comfortable) with 5 for loops, so it has 5 iterations variables. Is ...
0
votes
1
answer
48
views
Trouble with the hacker edition of mario.c
I have been struggling with the hacker edition of mario.c for over 2 hours.
If I give a height of 5 I only get 4 rows as shown in the attached image.
/* C Program which prints mario's right aligned
* ...
0
votes
1
answer
64
views
pset6 problem with mario.more.py, even my output is correct but check50 is still showing error
This is my code in python
import cs50
while True:
print("height: ", end="")
height= cs50.get_int();
if height>=0 and height<=23:
break
for i in range(1,height+1):
...
0
votes
1
answer
273
views
pset6 - mario more - check50 EOF error
My pset6's mario-more Python implementation works fine. However, check50 is returns the following errors:
:( handles a height of 0 correctly /
did not find EOF
:( handles a height of 23 ...
0
votes
1
answer
172
views
pset6 mario(more).py check50 problems even when output is correct?
Working on mario (more).py port into python. My code works and it seems to output the correct things, but check50 does not like it. Can anyone point me in the right direction of where I am incorrect?
0
votes
1
answer
34
views
Troubles with mario.c more
when I executed I have this errors:
:( handles a height of 1 correctly
expected "# #\n", not "# #\n"
:( handles a height of 2 correctly
expected " # #\n## ##\n", not " # #\n## ##\n"
:( ...