Questions tagged [speller-hashtable]
The speller-hashtable tag has no usage guidance.
9 questions
0
votes
1
answer
177
views
problems in unload function-pset5
// Implements a dictionary's functionality
#include <strings.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#...
0
votes
1
answer
39
views
Ap cs50(or cs50) hash speller
// Implements a dictionary's functionality
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "dictionary.h"
//...
0
votes
1
answer
156
views
Pset 5 Speller Segmentation Fault
Seg-faults seem to be the bane of my existence. I've tried running valgrind and using printf functions to find the line(s) of code that are causing the seg-fault in my implementation of speller, but ...
0
votes
1
answer
54
views
in speller load() struggling to understand if populating dictionary correctly and how to check hashtable
I am building my load() function and I'm wondering if I'm building it so that it is indeed storing the dictionary words correctly.
I tried printing both:
printf("%s\n", new_node->word); //...
0
votes
1
answer
161
views
Speller : 56 bytes are not being freed
There are 56 bytes that are not being freed.
==600== 56 bytes in 1 blocks are definitely lost in loss record 1 of 2
==600== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-...
0
votes
1
answer
93
views
Pointer initialization in Load function (pset4 Speller)
When in my load function, I insert a node at the front of a linked list:
If I declare and initialize a pointer as the new 'head' node, my code compile but every word in the text is found to be ...
0
votes
1
answer
50
views
Pset4 speller segmentation fault in check functions when using larger files like holmes.txt
I updated my hash function to make the code faster, it makes a hash table and stores word with the same first three letters in one linked list, i.e words starting with aaa will go together, words ...
0
votes
1
answer
76
views
Segmentation fault - Speller
My code has a segmentation fault and always prints this out:
MISSPELLED WORDS
dictionary.c:111:19: runtime error: member access within null pointer of type 'node' (aka 'struct node')
Segmentation ...
0
votes
1
answer
146
views
I don't get these errors
Every time I compile speller (hash table) I get these errors:
clang -fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror -Wextra -Wno-sign-...