Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
My server get two errors at cs50check:
-Requesting cat.jpg returns 200, image/jpeg, and correct image (TODOS)
-Requesting two files in a row (cat.html then cat.jpg) succeeds (TODOS)
OR it could be a memory leak somewhere else in the program. Use valgrind. valgrind -v --leak-check=full --show-leak-kinds=all --track-origins=yes will maximize feedback.
If you "can't manage to find these errors" and you can see the code, you should know that no one else will be able to find the errors without seeing the code. This post reports the same failures. Look it over. And review the "Reasonable" section of the Honor Code, specifically Sharing snippets of your own code online so that others might help you identify and fix a bug. You can always edit your post and delete the code after you get the help you need.
valgrind -v --leak-check=full --show-leak-kinds=all --track-origins=yes
will maximize feedback.Sharing snippets of your own code online so that others might help you identify and fix a bug.
You can always edit your post and delete the code after you get the help you need.