I have been struggling with pset2 (despite I have done pset3 and 4) for weeks because I always get this message from check50:
*Checking.....................................................:)
caesar.c exists
:) caesar.c compiles
:( encrypts "a" as "b" using 1 as key
\ expected output, but not "b"
:( encrypts "barfoo" as "yxocll" using 23 as key
\ expected output, but not "yxocll"
:( encrypts "BARFOO" as "EDUIRR" using 3 as key
\ expected output, but not "EDUIRR"
:( encrypts "BaRFoo" as "FeVJss" using 4 as key
\ expected output, but not "FeVJss"
:( encrypts "barfoo" as "onesbb" using 65 as key
\ expected output, but not "onesbb"
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
\ expected output, but not "iadxp, emk tqxxa!"
:( handles lack of argv[1]
\ expected output, not standard error of "/opt/sandbox50/bin/run.sh: line 31: 76..."
jharvard@appliance (~/CS50/Pset2): check50 2014/x/pset2/vigenere vigenere.c
:) 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 "=aKAoh"
:( encrypts "BARFOO" as "CAQGON" using "BAZ" as keyword
\ expected output, but not "=;KAIH"
:( handles lack of argv[1]
\ expected output, not standard error of "/opt/sandbox50/bin/run.sh: line 31: 261..."
:( handles argc > 2
\ expected output, not an exit code of 1
:( rejects "Hax0r2" as keyword
\ expected output, not an exit code of 1*
My program works exactly as the implementation by the staff works. Why is check50 showing these errors?
check50
expects, then you get your errors. Read the answer of @curiouskiwi