Questions tagged [pset5]
The problem set for Week 5 will challenge you to apply what you've learned about pointers, memory management, file i/o and structs, creating more complex data structures (such as Hash Tables or Tries) and leveraging their power to write a lightning-fast spell check algorithm.
56
questions
0
votes
1answer
804 views
pset5, have a seg fault but valgrind reports no error
I think I have load, check and size function running successfully.
However, my code meets seg fault again.
Valgrind reports:
==5654== Stack overflow in thread 1: can't grow stack to 0xffe801ff8
==...
0
votes
1answer
142 views
CS50 PSET5 Memory Leak (updated2)
I had posted two questions regarding memory leak in Problem Set 5, available at CS50 PSET5 Memory Leak and CS50 PSET5 Memory Leak (updated). I got amazing feedback from different people (and I ...
0
votes
1answer
82 views
Pset5 compile but report segmentation fault inside load
HELP!! I'm finally able to make my code compile without error. I know it won't guarantee it'll work, but at least I can move to the next step. :-)
When I run the code it gives me segmentation fault in ...
0
votes
1answer
284 views
Segfault when implementing trie in pset5
I'm trying to implement a trie as my load function in pset5, but I have two questions:
How did I fix the segfault I encounter? (identified specifically below)
More broadly, where are the errors in my ...
0
votes
2answers
300 views
Submitting pset5 for proper grading
On the advice of the following statement in the instructions for pset5:
"You may add functions to dictionary.c or to files of your own creation
so long as all of your code compiles via make."
I ...
0
votes
1answer
740 views
Pset5 trie problem with load: persisting segmentation fault
I read lot of questions and answers about the "load"segmentation errors in pset5 but I still experience some difficulties fixing it. I tried to make sure there are no garbage values by initializing ...