Here are a few common solutions that may help:
- Have you double checked to make sure there are no extra spaces or blank lines in your output? This could be causing your test cases to fail.
- Are you using a different compiler? Check out our Environment page https://www.hackerrank.com/environment for up-to-date information on how we're compiling your code.
- Your code doesn't match the expected output. The output produced by your code must exactly match the output expected by the test case, so something like a spelling error in your output will cause you to fail the challenge.
We encourage you to post your issue in the discussion area, which is a forum moderated by HackerRank. You may find other users who have come across the same issue and received a resolution.
Also, you can choose to unlock the editorial solution or go to the leaderboard and reveal other users' solutions. Note, if you view the editorial or unlock other users' solutions, you will not score any points for that challenge.
**code help for Euler**
Currently, we provide limited code help support for this domain. Project Euler statements have been adapted from https://projecteuler.net with HackerRank original test cases. Please look through related submissions based on your preferred language or feel free to post on our discussion forum to find a solution.
Please sign in to leave a comment.