2

When checking vigenere.c with check50, I get the following

:) vigenere.c exists
:) vigenere.c compiles
:( encrypts "a" as "a" using "a" as keyword
   \ expected output, but not "a"
:( encrypts "world, say hello!" as "xoqmd, rby gflkp!" using "baz" as keyword
   \ expected output, but not "xoqmd, rby gflkp!"
:( encrypts "BaRFoo" as "CaQGon" using "BaZ" as keyword
   \ expected output, but not "CaQGon"
:( encrypts "BARFOO" as "CAQGON" using "BAZ" as keyword
   \ expected output, but not "CAQGON"
:) handles lack of argv[1]
:) handles argc > 2
:) rejects "Hax0r2" as keyword
https://sandbox.cs50.net/checks/3824019f400744caaf02f4fb42ef6cec

I can see my program producing the correct output. However, I'm still getting red sad faces. How to fix that?

1 Answer 1

5

You must include "\n" at the end of the encrypted line.

This goes for all the C psets.

1
  • Thanks for the quick response,that solved the problem.By the way, this should be part of the instructions.Thanks again.
    – RNA
    Commented Jan 18, 2015 at 16:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .