I have done my pset2 but my code fails check50 even though the code is correct and encrypts the text correctly. Here is the check50 output:
:) caesar.c exists
:) caesar.c compiles
:( encrypts "a" as "b" using 1 as key
\ expected prompt for input, not output of "Your Key is:1\nPlease provide me with t..."
:( encrypts "barfoo" as "yxocll" using 23 as key
\ expected prompt for input, not output of "Your Key is:23\nPlease provide me with ..."
:( encrypts "BARFOO" as "EDUIRR" using 3 as key
\ expected prompt for input, not output of "Your Key is:3\nPlease provide me with t..."
:( encrypts "BaRFoo" as "FeVJss" using 4 as key
\ expected prompt for input, not output of "Your Key is:4\nPlease provide me with t..."
:( encrypts "barfoo" as "onesbb" using 65 as key
\ expected prompt for input, not output of "Your Key is:65\nPlease provide me with ..."
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
\ expected prompt for input, not output of "Your Key is:12\nPlease provide me with ..."
:) handles lack of argv[1]
How do I fix this problem?