You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the following command:
cat sum-me.txt | perl -e '$sum = 0; while (<>) {$sum += $_;} print $sum'
It correctly prints 42 but is not detected as a correct answer.
I then tried just printing 42 by typing "echo 42". Also not detected.
I cast the result of the perl script into an int but it also had no impact. Not sure why the result is failing.
The text was updated successfully, but these errors were encountered:
Note that the cmdchallenge.com official code repo is on GitLab, https://gitlab.com/jarv/cmdchallenge
If you are having trouble with a challenge you can see solutions here -> https://github.com/jarv/cmdchallenge/blob/master/challenges.yaml
Search for the challenge and look for the
example:
to see one way of doing it.If you would like to help improve the wording of a challenge description, please consider sending a pull request against https://gitlab.com/jarv/cmdchallenge/blob/master/challenges.yaml
Summary
correct answers not being detected for sum_all_numbers challenge.
Steps to reproduce
If applicable please provide a direct link to the challenge, example: https://cmdchallenge.com/#/sum_all_numbers
I ran the following command:
cat sum-me.txt | perl -e '$sum = 0; while (<>) {$sum += $_;} print $sum'
It correctly prints 42 but is not detected as a correct answer.
I then tried just printing 42 by typing "echo 42". Also not detected.
I cast the result of the perl script into an int but it also had no impact. Not sure why the result is failing.
The text was updated successfully, but these errors were encountered: