I'm writing in C++, and I can't pass the check, although everything works fine in the console, as I understand it, it's all in main(), please help me solve this problem
Why are you shuffling the array elements? Your code has an infinite loop and that's why it doesn't pass the tests, even the smallest ones where the first sum is greater than 10.
C# Completions 16065
9 + 3 is greater than 10 and 3 + 9 is exactly the same, addition is commutative so I don't know what you were trying to achieve with the shuffling. Improve your code, it is not correct.
See https://docs.codewars.com/training/training-example#writing-a-solution.
Not a kata issue. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Why are you shuffling the array elements? Your code has an infinite loop and that's why it doesn't pass the tests, even the smallest ones where the first sum is greater than 10.
9 + 3 is greater than 10 and 3 + 9 is exactly the same, addition is commutative so I don't know what you were trying to achieve with the shuffling. Improve your code, it is not correct.
Execution Timed Out in C#
put smaller numbers on attempt because my solution is correct