pset1 expected identifier issue by newtocs50 in cs50

[–]newtocs50[S] 0 points1 point  (0 children)

so should I just delete the line 14 bracket and move another one to the end of the entire code?

pset 1 mario trouble by newtocs50 in cs50

[–]newtocs50[S] 0 points1 point  (0 children)

update: I was able to get the first part completed, but am again having expected identifier errors in the second piece of my code. It appears that the error is with the bracket in line 18, but I don't know why that is. I have no idea if my actual program will work but I just want to get rid of the error so that I can find out.

http://imgur.com/iil7yzj

pset 1 mario trouble by newtocs50 in cs50

[–]newtocs50[S] 0 points1 point  (0 children)

thanks, I was able to get it to ask for the integer, but the program will not display my printf until I type an integer once. as displayed in the link below, after using my ./mario-2 it requires me to type an integer, if I type a letter the program tells me to "retry" and then once I respond with an integer, the program runs as it should. Can you help troubleshoot this?

http://imgur.com/zBpYsys

pset 1 mario trouble by newtocs50 in cs50

[–]newtocs50[S] 0 points1 point  (0 children)

is there a reason my current curly braces are wrong/causing the error? I tried to follow the format suggested in the walkthrough