Output correct but runtime error while submitting (Problem Code: CORUS)

This post was flagged by the community and is temporarily hidden.

Most common reason for SIGSEGV is an out of bound array access. Find and correct it.