r/cs50 • • Mar 26 '23

CS50x Whats wrong with my code?

Post image

Can anyone please help me with error? I have no idea why \n could be an error 🙏🥺

1 Upvotes

9 comments sorted by

7

u/TuneOk9321 Mar 26 '23

You accidentally typed in 2 blank spaces after „Years:“

3

u/klauuuu Mar 26 '23

I backspaced and make population again but bo difference 🥺

5

u/TuneOk9321 Mar 26 '23

Did you type "make population" after you changed the code?

6

u/klauuuu Mar 26 '23

Oh thank you so much ! I fixed it already. I backspaced then type make population then i worked. Sorry for being stupid 🙌

9

u/TuneOk9321 Mar 26 '23

That's okay. I think we all went through the same thing :D

1

u/tengr1 Mar 26 '23

a little friendly advice: firstly, try figuring out the problem by yourself. Believe me, when you solve the problem by yourself it will enhance your problem solving skill which is must for programming. Good luck!

1

u/NeitherReference4169 Mar 26 '23

Make truly is the first hurdle in learning debugging

2

u/Cyay Mar 26 '23

You should remove the \n

1

u/Cryptotrafficker Mar 27 '23

🤣🤣🤣 I thought you wanted to help 🤣🤣🤣