Questions tagged [mario.less]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

Pset1 - Mario (less) - White Space

I am having a heck of a time trying to fix my error of "did you add too much trailing whitespace to the end of your pyramid?". It looks identical to me, but obviously I am missing something. ...
0
votes
1answer
23 views

Cannot compile Mario (less comfortable) in PSET 1

I have finally made code that works and allows itself to be "made". However when I try to compile the code to submit it, it presents me with an error that says "undefined reference to '...
0
votes
1answer
30 views

Struggling to align pyramid and check for extra spaces at the end of each line in pset6 mario.py less

I'm struggling to meet these specifications - "Be sure that the pyramid is aligned to the bottom-left corner of your terminal, and that there are no extra spaces at the end of each line." ...
0
votes
0answers
23 views

i dont know why i'm getting 45% when it looks like it's working

while True: n=int (input("enter height: ")) if n>=1 and n<=8: break k = 2 * n - 2 for i in range(0, n): for j in range(0, k): print(end=" ") k = k - 2 for j in ...
0
votes
2answers
36 views

how do i write pesudocode.txt for Mario? (less comfortable)

After I input: mkdir ~/pset1/mario its asking me to write pseudocode.txt and i am not sure how i can do that. I've tried inputting the pseudocode.txt and that gives me "command not found"
0
votes
2answers
29 views

are we supposed to use the set from hello.c to begin with Mario (less comfortable) or do we need a new terminal and file?

the first thing that the Mario instructions say is this : First, create a new directory (i.e., folder) called Mario inside of your pset1 directory by executing ~/ $ mkdir ~/pset1/mario. I do not ...
0
votes
1answer
25 views

My code does what I want it to do, but I get errors with check50 (PSET1, MARIO, LESS)

When I run my code in the terminal it gives me the correct response. However, check50 indicates there is an issue with my spaces. I have spend 2 days looking at it but I dont know whats wrong. INPUT /...
0
votes
1answer
14 views

No rule to make target 'mario'. Stuck on where I am going wrong. Cannot compile existing file

I have viewed similiar question/answers on this site and still cannot troubleshoot where I am going wrong. The mario.c file exists in the mario folder. It just will not compile from what I can tell. ...
0
votes
1answer
49 views

pset6/less/Mario passing all checks, but score at 90%

My code is getting 9/9 on the check. Visually it seems fine as well. There doesn't seem to be any preceding or trailing empty spaces. The score, however, is 90%. Any help in identifying the mistake ...
0
votes
1answer
23 views

How do I make the pyramid in mario.c less render normally?

#include <cs50.h> #include <stdio.h> int main(void) { int n; do { n = get_int ("Height: "); } while (n < 1 || n > 8); for (int i = 0; i < n; i++) { for (int j = (i - ...
0
votes
1answer
35 views

Error: use of undeclared identifier 'j'

My code looks fine but "make mario" insists that "Error: use of undeclared identifier 'j'". #include <cs50.h> #include <stdio.h> int main(void) { int n; do { n = get_int ("Height: "...
0
votes
2answers
51 views

Pset1 Program does not stop printing dots dots/spaces for the pyramid and I don't understand why

After a certain number of iterations through the loops (lines 16 to 21), I expect the program to stop printing out dots since the "dotcount" should be equals to 0. However, an unnecessary dot is still ...
0
votes
2answers
37 views

Pset1 How do I get my code to compile as it should?

I'm trying to get my code to compile properly and it just won't. I know the code works when using a printf and scanf but now that I've changed it to get_int and printf it is not working properly. I ...
0
votes
1answer
13 views

How to make my code print?

So my code printed fine when I used printf and scanf together but when I changed it to the get_int command it no longer prints anything. How do I use get_int and still print my code? The purpose of ...
0
votes
1answer
24 views

Mario steps: How to make it do the opposite of what has compiled?

How do I make my dots line do the opposite of what it is doing? It looks right if only I knew how to format the code to flip what has been done. How should I be thinking about fixing this? I've tried ...
0
votes
3answers
30 views

Mario Problem set 1 undefined reference

This is the error I'm getting and I'm not sure why it isn't working because this is how it was done in the example in the lecture. This is done using and for reference. I've looked similar questions ...
0
votes
1answer
59 views

pset 6 mario, I'm getting wrong ouput

I'm getting an extra new line just after getting input. Help me fix it while True: n = cs50.get_int("Height: ") if n > 0 and n < 9: break for i in range(n + 1): if n == 0: ...
0
votes
1answer
30 views

Problem set 1 Mario variable issue

I've been staring at my computer for so long trying little tweeks to fix the error message. TLDR how do I stop the shadow message from appearing and initialize variable h? The image looks confusing ...
0
votes
1answer
44 views

Mario Less Loops doubt and code review

I have attempted the PSET 1 of 2020 CS50x and have a couple of doubts. Could someone check if the following code for Mario less one is correct. If it is I also had a question that what should I put ...
1
vote
1answer
110 views

CS50 mario pset 1 error: expected '(' after 'do/while'

Here is my code: #include <cs50.h> #include <stdio.h> int main(void) { int n; do { printf("height: "); n = get_int(" "); } while { (n < ...
1
vote
1answer
83 views

PSet1: Mario - Less Comfortable (Too many periods)

I recently just tipped my toes into the water of CS50 last week, I'm completely new to this so I need a bit of constructive critisism. I was completed stumped at first, but I got somewhat close - not ...
0
votes
1answer
176 views

Stuck at pset 1 mario problem

I'm Stuck at the PSET 1 problem of CS50. for height 3, my output is coming as ..# ..## ..### Can any peers or experts, look into my code and help me out. [EDIT: code removed for Honor Code ...
0
votes
1answer
292 views

Pset 1 mario (less comfortable)

I've been working on this problem for days and I can't figure out how to print the right side of the pyramid. I"m able to print the left side, preceded by a space (denoted by "y) and one hash. I've ...
0
votes
2answers
239 views

mario (less) getting 53% score

I submit pset1 Mario (less), and my code works correctly but in cs50.me showing that I have only 53% scores even though that my code work correctly. #include <cs50.h> #include <stdio.h> ...
0
votes
1answer
258 views

MarioLess - declaration shadows a local variable error

Any suggestions on how to fix this error? "mario.c:10:14: error: declaration shadows a local variable" Code sample below. Thanks in advance! #include <cs50.h> #include <stdio.h> int ...
0
votes
1answer
104 views

Can’t see my error on Mario for loop, rows won’t execute!

I’ve gotten stuck on the Less Comfortable Mario set: the height input portion works, but the loop does not execute. I really wanted to figure this out on my own, but I’ve been stuck for days! Please ...
0
votes
1answer
335 views

Struggling with Mario (less comfortable) loop conditions

Been struggling with this a few times now and have inserted some additional printf commands to try and understand what's going on with the variables used to control my loops (please see instructions, ...
0
votes
0answers
93 views

Pset1 mario only executing do-while loop

So i've spent way too much time on this. Didnt expect it to be so difficult. I think i got the coding right but for some reason the program is only executing till the do-while loop and then it exits ...
0
votes
1answer
82 views

It doesn't work?!!! (Mario less)

Ok so this is my code: #include <cs50.h> #include <stdio.h> int main(void) { int n; do { n = get_int("Height: "); } while (n <= 0 || n > 23); for (int i = 0; i <= n; i++) ...
0
votes
1answer
375 views

How to print out hashes in mario(less comfortable)? (2019)

Ok so this is my code I have right now: #include <cs50.h> #include <stdio.h> int get_positive_int(string prompt); int main(void) { int i = get_positive_int("Height: "); for (i = 0; i < ...
1
vote
1answer
794 views

Clueless on where to start for Mario (Less comfortable) in CS50 2019

I am currently in the process of finishing Problem Set 1 from CS50 2019, which involves creating a pyramid out of hashes. The pyramid must be made by the user inputting a number between 1 and 8 (...
0
votes
1answer
54 views

Problem Set 1 - Mario - Less Comfortable - 'expected identifer or '('

I recently started CS50 and I am currently in the process of completing Problem Set 1 - Mario (The less comfortable one). I am really confused by the hash pyramid problem, so I've been trying ...
0
votes
1answer
31 views

Unable to run file CS50 mario less comfortable. errors while running program

]2 These are the codes and error screenshot which i receive while running programme which i have coded with help from different sources and with my understanding
0
votes
1answer
73 views

Errors while check50 in Pset1 mario less, expecting suggestions

I am getting following errors with check50. Need help to understand which part of my code cant handle these situations. :( handles a height of 1 correctly expected "##\n", not "" :( ...
0
votes
2answers
127 views

Why isn't my block on pset1 turning into a staircase?

I am currently working on pset1 Mario, less comfortable. I am running my c to turn the hashtags into a staircase, but when I run the code, it is only a block. What is wrong with my code? Thank you all ...
0
votes
1answer
89 views

I get an error like make: ***No rule to make target 'mario how to resolve it.'

http://ide.c9.io/parkerdharini/workspace Here when i compile mario.c i found this error.
0
votes
1answer
352 views

Can anyone please help with mario less comfortable?

:) mario.c exists. :( mario.c compiles. expected exit code 0, not 1 :| rejects a height of -1 can't check until a frown turns upside down :| handles a height of 0 correctly can't check ...
0
votes
1answer
114 views

pset1 mario - hashes output

I managed to print the correct number of spaces. However, when it comes to the hashes, im stuck in 2 per row instead of increasing by one the number of them as the number of rows increases. Any help ...
0
votes
1answer
228 views

I finished pset1 mario.less but I don't understand my code

So I managed to finish pset1 mario.less but I'm really struggling to understand the logic behind my own code, the confusion comes into play once I get to the part where we begin building the half ...
0
votes
1answer
280 views

pset6 mario.less

I recently started pset6, so I'm making the transition into python, and I'm having a little bit of trouble trying to figure it all out. I have the code for mario.less and it prints correctly, but its ...
0
votes
3answers
176 views

pset1 not printing hashes for mario

#include <stdio.h> #include <cs50.h> int main(void) { int height; do { printf("Please give an integer that is less than 23 and greater than 0: \n"); rows = GetInt(); printf("Height:%i\...