Different result than the Test/Submit? Check for invalid memory access or uninitialized global variables.
I don’t see that I am doing this.
Also, btw, “trivial examples” are very large - so large, that they run out of space if you attempt to put them into the “Test with custom input” dialog box. So I went ahead and submitted. Failure showed smaller example - I was able to put that into “Test with custom input” and got the right answer. So - what gives?