Questions tagged [fault]

The tag has no usage guidance.

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

PSET2 Substitution

#include <cs50.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <stdio.h> int main(int argc, string argv[]) { // Checks if there are two ...
Chi Go's user avatar
  • 3
1 vote
2 answers
82 views

Segmentation error on pset2 substitution

I'm trying to work on "substitution" problem set, but I'm getting an error of "Segmentation Fault" when I run the program below: In this part of the program I just want to check if ...
Daniel Siman's user avatar
0 votes
1 answer
475 views

Pset2 (Caesar). Runtime error: load of null pointer of type 'char'

Problem with segmentation. I can compile the program, but can't run. Questions about segmentation fault were asked many times, but I still don't know. I think problem with command-line argument — I ...
Nikita Kokorin's user avatar
0 votes
2 answers
122 views

Segmentation fault in recover pset4

I am working on recover in problem set 4. However, after trying out different stuff, the code itself compiles but I get a segmentation fault and the outcome is only one jpg file called 000.jpg. I am ...
viet 's user avatar
0 votes
1 answer
22 views

Segmentation Fault in Vigenere

Goodmorning, My program compiles, but when I try to run it with only the name of the program 'vigenere', I get this. "vigenere.c:12:23: runtime error: load of null pointer of type 'char' ...
AlA4Dr's user avatar
  • 1
0 votes
1 answer
17 views

Segmentation fault and correct answer being returned (pset.2)

this question has been asked in different ways, but hasn't been answered I think for the way I wrote my code. #include <cs50.h> #include <stdio.h> #include <string.h> #include <...
Joshua Hoffman's user avatar
0 votes
0 answers
35 views

dictionary.c giving segmentation fault

Unload function giving segmentation fault. Would anyone help me check my entire code. #include <stdbool.h> #include<stdio.h> #include<string.h> #include<ctype.h> #include<...
Ranjan Shrestha's user avatar
0 votes
0 answers
54 views

pset5 unload segmentation fault

I am getting seg fault. I am not being able to determine error by debugger. bool unload(wordtree* del) { if(del==NULL) return true; for(int i=0;i<27;i++) { if(del->ptr[i]!=NULL) { ...
Ranjan Shrestha's user avatar
0 votes
1 answer
59 views

Odd IDE behavior during pset4

I just finished writing the code for the resize problem of pset4. When I run my code in the debugger, everything turns out right, but when I run it simply in the terminal, the computer complains about ...
Christophe Caron's user avatar
0 votes
1 answer
62 views

Writing a word puzzle solver and having a problem with freeing heap memory. Would really appreciate some help!

I am having some trouble with heap memory. I am writing some code to solve word puzzles - (from a game called Countdown here in the UK). The game is that you are given 9 letters and the goal is to ...
Jeremy Tung's user avatar