Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Adding parentheses is solving the issue. But I am still confused why the error came with the original code? Should I conclude Hackerrank editor uses Busybox awk version in the backend? Commented May 24, 2020 at 20:52
  • I don't know Hackerrank, so can't really tell, but it looks like it. Commented May 24, 2020 at 21:04
  • Hackerrank is coding practice platform based in India. The link to the question is hackerrank.com/challenges/awk-4/problem . Since parentheses is solving the error maybe they are using busybox version only. Thank You for the help. Commented May 24, 2020 at 21:08