Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    please post here the exact errors from check50 not via a link.. from your description the issue does not sound like a compiler error it sounds like an error in what you are returning somewhere. Commented Mar 15, 2024 at 19:01
  • 1
    why are you converting the check word to lowercase if you are just going to use strcasecmp? if you are converting it then you shouldnt need strcasecmp.... smart use of strcpy but dont forget you have typing issues... look at the type of return of hash and look at the type of the variable you are storing it into. Also you are not assigning a NULL when you do your strcpy's to the last character so you are going to run into problems eventually. thats a bug. Commented Mar 15, 2024 at 19:06
  • 2
    Two things: there is an "incident with codespaces" message on the cs50 status page. It could be a timing problem with your check, or it could have nothing to do with anything. The other thing: I copied this dictionary.c into my codespace, (including fresh download of the distro), compiled it (success) and ran check50, no errors reported (locally and not). Commented Mar 15, 2024 at 21:17
  • @DinoCoderSaurus Thanks for your feedback, it really helps knowing that my code works as expected! Even if check50 disagrees... I still don't know why though. The CS50 status page shows that all services are up and running, but I get the exact same error. I will try to do what you did in case I had changed something in the other files by mistake. Commented Mar 16, 2024 at 12:23