I’m working on the CS50x 2024 Substitution problem set, and I’m encountering an issue with Check50 and Submit50 not detecting the output from my formatted string. I can see the correct output when I run the program, but the checkers aren’t recognizing it.
Here is a snippet of my printf code:
printf("ciphertext: %sn", substitution_cipher(plain_text, argv[1]));
Output on My Terminal:
substitution/ $ ./substitution YUKFRNLBAVMWZTEOGXHCIPJSQD
plaintext: This is CS50
ciphertext: Cbah ah KH50
substitution/ $ ./substitution yukfrnlbavmwzteogxhcipjsqd
plaintext: This is CS50
ciphertext: Cbah ah KH50
substitution/ $ ./substitution DWUSXNPQKEGCZFJBTLYROHIAVM
plaintext: The quick brown fox jumps over the lazy dog
ciphertext: Rqx tokug wljif nja eozby jhxl rqx cdmv sjp
Steps I’ve Tried:
-
Ran all specified keys and inputs as mentioned in the Check50 file.
-
Verified the output manually, which appears as expected.
-
Re-checked my formatted strings and variables.
-
Re-ran make and also deleted my file and re-make’d it
Screenshots:
-
Check50 Output On Browser
-
Check50 Output In Command Line
Is there something wrong with my implementation or an issue with the checker? Any help would be appreciated. Thanks!
Ben Resnick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.