Questions tagged [style50]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

style50 does not run on a Mac

I am trying to run the style50 program locally on my macbook. I would like to evaluate my answers before submitting them. I installed it according to the instructions given heren: https://cs50....
0
votes
1answer
28 views

Style50 provides improvement suggestions I don't understand. What should I do with the code?

I wrote this piece of code. Generally it's just a declaration of four integers and the corresponding formulas. One line for each int: int q25 = cents/25 - cents%25/100; int q10 = (cents - q25*25)/10 ...
0
votes
1answer
95 views

Style50 not working for pset5 speller

My code just works here for speller. I am receiving 4 out of 5 in style. A 5 over 5 will make me pass this pset by crossing 70% threshold. Can you Please spot errors in style? // Implements a ...
2
votes
1answer
74 views

Why do cs50/2018/x/speller, cs50/2018/x/mashup show looks good but give 4 / 5 for style?

I have run update50 and I'm still not seeing any style errors but I'm still getting 95% and 4/5 for style?
0
votes
2answers
272 views

Style50 says “Looks good!” but “style” grade only 4 out of 5?

For pset2 - crack, I've run style50 and got a "Looks good!" but upon submitting, my style grade is marked as 4 out of 5. I see this question has been asked in the past and the solution usually was "...
0
votes
1answer
37 views

pset1 - don't understand why style50 asks me that

I'm stuck with Style 50's expectations. If I add the tabulation it seems to ask me, it tells me to delete a tabulation. So I have to add 4 spaces... which should be equivalent to a tabulation. Why? ...
0
votes
1answer
51 views

Is there a program to check the style50? how to do it?

Is there a program to check the style50 on the same way of the check50? how to do it?
1
vote
1answer
52 views

style50: Unknown file type for JS files

I am getting a score of 4 out of 5 on my project, for styling, and I corrected all the python files accordingly. (I have html, css, js, py files with other data files.) But I'm getting "unknown file ...
1
vote
1answer
43 views

style50 not updating

I recently submitted the pset7/finance in cs50. I checked for style in style50 and it returned looks good! which is an indication that it is correct. But when I submitted to using submit50 I ended ...
0
votes
1answer
107 views

Dues style matter for p-set 1?

In weak 2 we learn how problem sets are evaluated: Scope, Correctness, Design and Style. So, is the code submitted for pset 1 also evaluated like this? And, if so, should I change the style to improve ...
0
votes
0answers
86 views

Need Coding style help - pset1 credit.c - (style50 failed to parse, feels and looks messy)

Style50 fails to even parse the code and it feels messy and cluttered. Need coding style pointers. Check50 passes. Trying to get the most out of this course, not just fumble through. What is wrong, ...
1
vote
3answers
60 views

Too much whitespace in vigenere.c, style50 error in pset2

The Program has no errrors when checking with check50 but when i check vigenere.c with style50 by: style50 2015.fall.pset2.vigenere vigenere.c it gives the following error: :( 84:20 Too much ...
0
votes
1answer
73 views

How should I wrap lines on long conditions?

What's the recommended and / or required way to wrap the condition on an if block? For example, I have this block: if ((islower(p[i]) && encrypted > 'z') || (isupper(p[i]) && ...
1
vote
1answer
41 views

Style50 in resize.c pset

Is it ok if it doesn't pass the style check completely? Even the copy.c doesn't pass it because of the long/short names given. My resize.c code works properly, it is written like the class staff ...
0
votes
1answer
61 views

space between function name and variables e.g. int main (void)

I checked the style guide https://manual.cs50.net/style/ and the C99 Standard https://en.wikipedia.org/wiki/C99 And neither explicitly states the best format but both implicitly write out main as so ...
0
votes
1answer
178 views

how to indent my code correctly for it to pass style50?

Alright, I'm not sure if this is my problem or a problem with style50 but it wants me to double indent everything in my main and everything after main. I don't think that this is stylistically correct ...
0
votes
2answers
472 views

style50 failed to parse

style50 is giving me a "failed to parse" error message. In other words, style50 is not working. It is not able to parse thru my program. Any ideas on how to fix this?
1
vote
1answer
109 views

Style50 and switch case fallthrough

Style50 is complaining about incorrect indentation when I'm trying to parse code containing empty cases inside a switch statement. Here's a code example: 4 int main(void) 5 { 6 // code 7 ...
0
votes
2answers
4k views

What is style50 and how to access it?

I notice in week 2 David suggest there's such a thing as style50 which will provide feedback on the quality of my code. What is it? How to access it?
1
vote
1answer
350 views

“inline comments are discouraged” message from style50

I'm getting the following output: :| inline comments are discouraged when I use style50 in terminal window. I thought that commenting while coding was something like "must have." How is style ...