Ad
  • Custom User Avatar

    In Python, unless it's a random test, both in sample and fixed tests the input is [12, 30, 21], not [21, 30, 12]

  • Custom User Avatar

    What language are you trying to solve? Is this an example test, or test case from full test suite? All languages I checked contain sample test of [12, 30, 21], and the answer is indeed 6. I cannot see any language with sample test of [21, 30, 12], but I cannot check full tests of all languages, so info on attempted language could be helpful.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    See my answer below (at the end of your first post).
    Morality: beware of extra-whitespaces...

  • Default User Avatar

    You have an extra-blank at the end of the second element of each pair. Modify your printing function above to show it.
    Good luck! Cheers.
    PS: Unfortunately at CW the tests are made with "Igloo" which gives "unsupported type" when the answer is incorrect.

  • Custom User Avatar

    I may have posted it in the wrong section

    No, you posted in the right section, but you'll have to wait until someone versed in C++ can answer you. Just wait patiently and don't create different posts about one problem, there's no need.

    C++ Completions 468

    From that I guess the problem is in your code but I know almost nothing about C++, so I can't help you.