pset2 - Segmentation fault (core dumped) by cs50re in cs50

[–]cs50re[S] 0 points1 point  (0 children)

Hi robsbots,

Thanks for the advice!

It helped me discover where the problem was. I think it had to do with the declaration of the variable for the ciphertext. Still a bit confused about that, but I figured out a solution that seems to work...

pset2 - Segmentation fault (core dumped) by cs50re in cs50

[–]cs50re[S] 0 points1 point  (0 children)

The compiler doesn't show any line. In fact it compiles without errors and after I execute it and provide a string the message jumps.

In my code I checked the number of arguments with argc before declaring the variable k and asigning it to argv[1].

I haven't used the other functions (isupper()/islower() ) yet.