Questions tagged [fault]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
44 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 ...
1
vote
3answers
7k views

cs50. pset4. recover

I ask for help. I do not find the error. I prompted and rewritten the code. Next is a new version, but the cs50 does not pass! The files have been resumed. performance control does not pass list of ...
0
votes
1answer
444 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 ...
0
votes
2answers
119 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 ...
0
votes
1answer
20 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' ...
0
votes
1answer
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 <...
0
votes
0answers
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<...
0
votes
0answers
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) { ...
0
votes
1answer
57 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 ...
0
votes
1answer
59 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 ...