Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct result not detected for sum_all_numbers challenge #163

Open
icefyre127 opened this issue Jun 5, 2018 · 0 comments
Open

Correct result not detected for sum_all_numbers challenge #163

icefyre127 opened this issue Jun 5, 2018 · 0 comments

Comments

@icefyre127
Copy link

icefyre127 commented Jun 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant