Ad
  • Custom User Avatar

    what exactly does the issue was in array ending mean?

  • Custom User Avatar

    Your code fails this test:

    {
        const int dice[5] = {2, 6, 1, 6, 4};
        cr_assert_eq(score(dice), 100);
    }
    

    Try putting this in your IDE to see the result. Your code returns 700, whereas it should return 100