Questions tagged [check]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
72 views

PSET4 - recovery, problem with writting jpegs after start

include <stdio.h> include <stdlib.h> typedef uint8_t byte; define SI 512 int main(int argc, char* argv[]) { FILE* card = fopen("card.raw", "r"); if (card == NULL) { ...
0
votes
1answer
75 views

PSET4 resize, struggling to get properly resized image ( vertically)

Thanks for the help it is resizing the picture correctly now I think but my coparison with staff version gives me lots of fails. : :) resize.c and bmp.h exist :) resize.c compiles :( doesn't resize ...
2
votes
3answers
1k views

PSET5 Speller, faster check and load times hashmap

I am working on the hashmap implementation for the PSET5 Speller problem and seem to keep encountering problems. I have already created a couple of other solutions to the problem (a-z style hashmap ...
0
votes
1answer
60 views

pset5: All works correctly except “a”, “A” and “I” come up misspelled too

I've implemented load and check in pset5. It works, but one-letter words "a", "A" and "I" are also coming up misspelled along with the words that are correctly identified as misspelled words. My code ...
0
votes
1answer
198 views

pset5: All words misspelled after load and check

Was hoping someone could help me figure out why I'm getting all words misspelled with my code in pset5. I've done load and check so far and can't see where the problem is. Here's a link to pastebin (...
1
vote
1answer
2k views

Speller.c appears to be working but is case sensitive (can't recognize capitol letters)

I'm getting my spell checker to load and check. It appears to work (as far as I've tested thus far) except for I can't get it to be case insensitive. I've tried a couple of approaches, but in both ...
0
votes
1answer
34 views

Pset5: not setting bools correctly?

I'm having trouble with my load function because it seems that the is_word bools are and aren't being set like they should be (as I can see when I go through it with GDB). Some of them are being set ...
0
votes
1answer
262 views

All words are misspelled in check

I have been looking at other questions like mine but none of the answers have helped me so im asking myself. I have been debugging for awhile and im pretty sure the problem is that im not accessing ...
0
votes
1answer
2k views

How to make the check function faster?

It seems to be taking too much more time comparing to staff's implementation. The other 3 functions are average, though. dictionary.c: https://gist.github.com/9dcb901f2007d09ae1c9c4fa934f13df Mine: ...
0
votes
1answer
130 views

CS50 pset6 check50 errors

I have completed my first draft of pset6 web server and I have used valgrind to check my program for memory leaks of which there seem to be none. However, when I ran my server.c file through check50 I ...
0
votes
1answer
74 views

expected expression pset5 dictionary.c if-else

I am having troubles with the check function in dictionary.c in pset5. Here is my code: /** * dictionary.c * * Computer Science 50 * Problem Set 5 * * Implements a dictionary's functionality. ...
2
votes
2answers
162 views

Dictionary.c thinks every word is misspelled

my dictionary.c is running but it simply marks every word as misspelled. Also check50 says itsnot compiling. Which it is clearly... Anybody has any ideas? Here my code #include <stdbool.h> #...
0
votes
1answer
93 views

pset5 Check Function (trie version) giving a segmentation error

Is there anyone that can help with my check function on pset5. I've got load working fine and confirmed that the correct number of words are loading in both the small and large dictionaries. I've ...
0
votes
1answer
114 views

CS50 pset5 mispellings segmentation fault

I finished the code for load() and check(). It seems to me that load() works fine. But when I finished check() and ran the program, segmentation fault appeared. Then I used Valgrind and here is one ...
0
votes
1answer
72 views

Load and Check error in pset5

I am having a problem is pset5 mispellings. My function tells me that all my words are mispelled. Here are my load function an my check function. #include <stdbool.h> #include <stdio.h> #...
0
votes
1answer
55 views

In Check50 I get a Segmentation Fault, and trying myself gives me an endless loop

So I've been working my way through PSet5, and I can't seem to find out why I have a segmentation fault here, or why I get an endless loop. It says the fault is on line 31, which I'll mark in the code ...
0
votes
2answers
480 views

pset5 trie check segmentation fault

After completing load, I'm working on the check function. My implementation compiles but leads to a segmentation fault with various dictionaries and text files. My load function works, and the program ...
0
votes
1answer
92 views

Pset5 600 out 644 words misspelled. What am I missing?

I can't seem to figure out what I'm doing wrong here... It loads the correct amount of words and checks them but its missing some when it comes to finding the misspellings. Can anyone spot what I'm ...
0
votes
1answer
66 views

Pset5 - dictionaries.c : My check output is very unrelated and confusing

i believe my load function is already working properly, i use fgets, and i have deleted the newline character in each word. but when it comes to check (i think..) it gives me unrelated output. this ...
0
votes
1answer
204 views

Mario pset1 a little hand please!

Spoiler alert code inside this link! !http://imgur.com/OIHvPFC I am having trouble with the mario, any tips of how i can get on with this? I have listed my integers at the start but maybe i over ...
0
votes
1answer
240 views

Speller is not giving expected out

I have been trying to implement and re-implement speller but so far, I haven't been so lucky. This is what I get for a custom smaller dictionary and a text file: MISSPELLED WORDS nice WORDS ...
0
votes
1answer
74 views

Trie is failing in Check function

When it comes to checking a word, it seems like there is no connection between the nodes. This where I am not getting the desired return. It's right under the check function. if(checker -> ...
0
votes
1answer
105 views

expected output, not standard error

My program compiles and runs fine. There isnt even much memory leak. But still it doesn't pass the cs50 check. Link to my check code
0
votes
1answer
389 views

pset5 all words misspelled

I tried so many times and fixed somehow based on reply. This is a little embarrassing but I still cannot figure it out. There must be some problems in load and check. #include "dictionary.h" ...
0
votes
2answers
365 views

CS50 Speller all words shown as misspelled

I'm having difficulty with CS50 speller. With the code below, all words are showing as misspelled, so there's obviously something (or many things) wrong with my load and/or check functions. I'd ...
0
votes
1answer
399 views

pset5 issues with load and check. Help!

I'm stuck with load and check and have several issues. At the top of my code I have the following: typedef struct node { bool is_word; struct node* children[27]; } node; node* root; node* ...
0
votes
2answers
197 views

Pset5: speller.c listing all checked words as misspelled

i implemented a trie and i think i have the load function sorted out, the check function however when i go through it with the GDB something weird happens and i can not figure out what that is. i ...
0
votes
1answer
384 views

Speller.c: all words in text misspelled

When I run check on my code, it shows that my program marks all the words in the given text as misspelled. I've made sure to pass a lower case copy of the words into my hash function before they are ...
0
votes
1answer
271 views

PSET 6, Issue checking misspelled words

I am having issues with this problem set. I have already implemented the load and size function. I am having issues with the check() function. This is the output I get when I run ./speller texts/...
0
votes
1answer
125 views

pset5 check-all misspelled?

I have the following code for check. I'm testing it against dictionaries/small and a test.txt and all words are coming back as misspelled? I don't understand why all words are coming back misspelled? ...
0
votes
1answer
442 views

Pset5 - Apostrophe and check problems with Tries

Alright, so I have spent days with with load, and just recently implemented check. I've read upon stuff, rewatched videos, all the good stuff. I'm trying to do pset5 (misspellings) with Tries. I ...
0
votes
1answer
254 views

Speller - Tries - Check function does not work

I have implemented load successfully. When I run speller, words load until the end of file. However, my check function does not work and according to GDB, speller stops when appending chars to word, ...
0
votes
1answer
137 views

Speller.c - need help on check

For an unknown reason some words that are in the dictionary and in the text file as well are marked as misspellings in the statistics. Though, the code passes check50 except the last paragraph saying ...
0
votes
1answer
69 views

Check function in pset5 segfault

After struggling through the load function and finally getting that correct, I've hit another brick wall with check. Here's my dictionary.h: /** * Declare struct and global variables for loading ...
0
votes
1answer
181 views

why does my check function not identify the misspelled words?

I need some help with pset5 problem. Below I have the check, load and size functions. When I run speller, it appears to load the entire dictionary, but the check function doesn't identify misspelled ...
0
votes
1answer
95 views

My check function in pset5 works correctly only for first word,showing rest all words as misspelled

It seems to be an issue of pointers.With the help of gdb and valgrind,I have figured out that after checking the first word in the dictionary,the pointer some way is not being reassigned to root. ...
0
votes
1answer
370 views

Cs50x pset5 mispellings check function

I am currently doing the fifth pset, mispellings. I implemented load correctly via a trie, sturcture, and also size. However the check function is giving me some difficulty. bool check(const char* ...
0
votes
1answer
513 views

pset5 check function error using tolower with const char*

Below, I want to turn each letter in the array of word into lower case. I'm using a loop and tolower to change each letter. But I get this error when I compile: dictionary.c:44:33: error: read-only ...
0
votes
1answer
224 views

check works, but it is very slow

I finished speller but check is very slow. I am using a hash table and I tried string hashing algorithms but nothing seems to work. Here is my hashing function. unsigned long hashIt(char* str) { ...
0
votes
0answers
248 views

pset5 check function skips some misspellings

I've ran the speller with the Austin Powers.txt, as so as i've ran the staff's solution. Mine speller catch's most of misspellings, but... Some small strings that are misspelled in the txt don't get ...
0
votes
1answer
954 views

Spell-checker check function

my spell-checker returns all words as being misspelled. I honestly have no idea why and I've been pulling my hair over it for a couple of days. Could someone help me ? If it's of any help, it spends 0....
0
votes
1answer
315 views

Pset5 all words in text mispelled: cannot figure out if the problem is in load or check function

I spent a huge amount of time on this pset but I still cannot make the program handle even the basic words properly. When I test the program with "austinpowers.txt", it returns 19190 words mispelled ...
0
votes
1answer
206 views

PSET5 - CHECK returning… nothing?

I have one more questions about SPELLER. I've completed all my codes for load, check, size and unload. I'm now trying to debug all of them. It appears I have an error with my check function, which one ...
1
vote
1answer
225 views

PSET5 How can I test my code with small dictionary?

I'm trying to test my implementations of LOAD and CHECK with small dictionary of cs50 appliance, but it's look like I do the wrong thing... Someone can help me with that please! Thanks jharvard@...
1
vote
1answer
434 views

PSET5 How can CHECK have access to the loaded dictionary?

I'm now working on the implementation of CHECK subfunction. I think I'm on the good way, but my major problem at this moment is to link CHECK with the loaded dictionary. I'm pretty sure I can't access ...
0
votes
2answers
217 views

Pset5 check() - edited

I have been using Slack exclusively up to this point but, I figured I would give SE a try (plus my boss is out today and I have some free time.) I am working on PSET 5's check(). The error that I ...
1
vote
1answer
399 views

CS50 PSET5 Speller Check Gets Skipped, All words misspelled

I am not sure why the words are all coming back misspelled, so I will post the global, check, and load. The run time shows that size and unload never get called. Any help is greatly appreciated. (PS. ...
0
votes
1answer
108 views

pset5 Aborted (core Dumped)

I have been trying to debug this for over 2 days now. Can't seem to locate the reason why there's a segmentation fault. Running this returns a bunch of misspelled words plus an error message - ...
0
votes
1answer
386 views

Speller check keeps returning all mispelled words

I have looked over a bunch of posts on speller.c load but I cannot figure out what I am doing wrong here. My load function seems to be working well as a linked list. My check function keeps ...
0
votes
0answers
159 views

pset5 load/check: seem to be inadvertently freeing my hashtable

I think I've implemented load in a (mostly) correct way. For the most part it seems to be sorting and loading into the hashtable correctly but I'm not sure. The problem I'm running into is that I ...