Questions tagged [spoiler]
The spoiler tag has no usage guidance.
11
questions
0
votes
1
answer
83
views
Spoiler - PSET2 Caesar - why does plain text change when ciphertext changes?
while doing Pset2 Caesar, I came across this strange situation where my plaintext would change whenever my ciphertext changes.
Ultimately my program compiles and passes check50, however, if the ...
0
votes
1
answer
26
views
The sepia code passes 2 first tests but doesn't pass the rest of those tests. What am I doing wrong?
This is the code I have written but it fails to produce the intended result. I am really not able to figure out why it's wrong. Can somebody help me?
[snip]
if (image[i][j].rgbtRed > 255)
{
...
0
votes
1
answer
307
views
Struggling with PSET6 DNA
I've been doing this for quite some time now, but I'm struggling to get the appropriate output. In the below code (which is incomplete as of now, but the main pieces are all on the board), I'm not ...
0
votes
1
answer
341
views
Finance history, runtime error("unsupported value: {}".format(value))
After creating a table to handle and record all transactions, I seem to run into problems with my buy and sell functions when I try to update the history table. Specifically this line of code:
# ...
0
votes
2
answers
27
views
freeing temporary node in functions
how to free the temporary pointer, one creates during the check function?
valgrind shows error on that particular statement
tried freeing it only when it has reached null, i.e., transverse over all ...
0
votes
1
answer
71
views
How to identify cause of Segmentation Faults?
Working on problem set 4- Recover but keep getting Segmentation Fault. Tried valgrind too, but could not figure it out.
Could anyone kindly anyone look into the code and tell me where does the ...
0
votes
2
answers
236
views
Unknown memory leak on "check function" - CS50 Speller
I have trying to decode the information gathered through valgrind with no success. I followed the hints given by valgrind trying too free the malloc'ed node *checker but to no avail. I've searched ...
0
votes
1
answer
53
views
Problem Set 4 - Recover
I am in the process of implementing recover in pset4. I am stuck!
The problem is the printf("testing the byte values"); statement. it is never getting hit.
The counter indicates that it is being hit ...
0
votes
1
answer
78
views
resize.c error when checking (spoiler)
Using check50 to ensure my code is correct, I get this strange error in red. Could anyone help me find out what the issue is?
:) resize.c and bmp.h exist
:) resize.c compiles
:) doesn't resize 1x1-...
0
votes
1
answer
194
views
pset4 recopy method Question
/**
* Copies a BMP piece by piece, just because.
*/
#include <stdio.h>
#include <stdlib.h>
#include "bmp.h"
int main(int argc, char *argv[])
{
// ensure proper usage
if (argc !...
0
votes
1
answer
97
views
pset 2 vigenere help with keyword and formula
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
int main(int argc, string argv[])
{
if(argc != 2) // RETURNS TO 1 if ...